summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 472a915)
raw | patch | inline | side by side (parent: 472a915)
author | mittorn <mittorn@sibmail.com> | |
Mon, 19 Jun 2017 07:08:23 +0000 (07:08 +0000) | ||
committer | mittorn <mittorn@sibmail.com> | |
Mon, 19 Jun 2017 07:08:23 +0000 (07:08 +0000) |
nanogl.cpp | patch | blob | history |
diff --git a/nanogl.cpp b/nanogl.cpp
index 25ab85dbd57311a8ea460a57e8c317ccd171918e..90fa364ca1c75e308643ddcd4e227347bce2ffcc 100644 (file)
--- a/nanogl.cpp
+++ b/nanogl.cpp
addr = SDL_GL_GetProcAddress( name );
if ( !addr )
#endif
+ addr = procAddress( glesLib, name );
#ifdef NANOGL_EGL
- if( glEsImpl->eglGetProcAddress )
- addr = (void *)glEsImpl->eglGetProcAddress( name );
if( !addr )
addr = procAddress( eglLib, name );
- if( !addr )
+ if( !addr && glEsImpl->eglGetProcAddress )
+ addr = (void *)glEsImpl->eglGetProcAddress( name );
#endif
- addr = procAddress( glesLib, name );
return addr;
}
// alloc space
if ( !glEsImpl )
glEsImpl = (GlESInterface *)malloc( sizeof( GlESInterface ) );
+ memset( glEsImpl, 0, sizeof( GlESInterface ) );
#ifdef NANOGL_EGL
eglLib = loadDriver( EGL_LIB );