[DEV] update the etk init
This commit is contained in:
parent
9bd62966ca
commit
ce00a23475
2
external/etk
vendored
2
external/etk
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 10d5116851d51facbae446ad00b7de535c3b58ef
|
Subproject commit a06aee64cc8f05ee33e51f9299c66f17960ff121
|
@ -247,7 +247,7 @@ int ewol::run(ewol::context::Application* _application, int _argc, const char *_
|
|||||||
|
|
||||||
// Creat and relaese ewol::Context interface:
|
// Creat and relaese ewol::Context interface:
|
||||||
void IOs::createInterface() {
|
void IOs::createInterface() {
|
||||||
etk::setArgZero(l_argv[0]);
|
etk::init(l_argc, l_argv);
|
||||||
EWOL_INFO("Create new interface");
|
EWOL_INFO("Create new interface");
|
||||||
interface = new MacOSInterface(l_application, l_argc, l_argv);
|
interface = new MacOSInterface(l_application, l_argc, l_argv);
|
||||||
l_application = nullptr;
|
l_application = nullptr;
|
||||||
|
@ -173,7 +173,7 @@ void MacOs::setKeyboardMove(ewol::key::Special& _keyboardMode, enum ewol::key::k
|
|||||||
* @return std IO
|
* @return std IO
|
||||||
*/
|
*/
|
||||||
int ewol::run(ewol::context::Application* _application, int _argc, const char *_argv[]) {
|
int ewol::run(ewol::context::Application* _application, int _argc, const char *_argv[]) {
|
||||||
etk::setArgZero(_argv[0]);
|
etk::init(_argc, _argv);
|
||||||
interface = new MacOSInterface(_application, _argc, _argv);
|
interface = new MacOSInterface(_application, _argc, _argv);
|
||||||
if (nullptr == interface) {
|
if (nullptr == interface) {
|
||||||
EWOL_CRITICAL("Can not create the X11 interface ... MEMORY allocation error");
|
EWOL_CRITICAL("Can not create the X11 interface ... MEMORY allocation error");
|
||||||
|
@ -478,7 +478,7 @@ class WindowsContext : public ewol::Context {
|
|||||||
* @return std IO
|
* @return std IO
|
||||||
*/
|
*/
|
||||||
int ewol::run(ewol::context::Application* _application, int _argc, const char *_argv[]) {
|
int ewol::run(ewol::context::Application* _application, int _argc, const char *_argv[]) {
|
||||||
etk::setArgZero(_argv[0]);
|
etk::init(_argc, _argv);
|
||||||
GLenum err = glewInit();
|
GLenum err = glewInit();
|
||||||
if (GLEW_OK != err) {
|
if (GLEW_OK != err) {
|
||||||
// Problem: glewInit failed, something is seriously wrong.
|
// Problem: glewInit failed, something is seriously wrong.
|
||||||
|
@ -1323,7 +1323,7 @@ class X11Interface : public ewol::Context {
|
|||||||
* @return std IO
|
* @return std IO
|
||||||
*/
|
*/
|
||||||
int ewol::run(ewol::context::Application* _application, int _argc, const char *_argv[]) {
|
int ewol::run(ewol::context::Application* _application, int _argc, const char *_argv[]) {
|
||||||
etk::setArgZero(_argv[0]);
|
etk::init(_argc, _argv);
|
||||||
X11Interface* interface = new X11Interface(_application, _argc, _argv);
|
X11Interface* interface = new X11Interface(_application, _argc, _argv);
|
||||||
if (interface == nullptr) {
|
if (interface == nullptr) {
|
||||||
EWOL_CRITICAL("Can not create the X11 interface ... MEMORY allocation error");
|
EWOL_CRITICAL("Can not create the X11 interface ... MEMORY allocation error");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user