hostsupport/hostegl/src/eglapi.cpp
branchbug235_bringup_0
changeset 67 ca7e6949bf7a
parent 56 40cc73c24bf8
child 75 82d8da1d79c7
--- a/hostsupport/hostegl/src/eglapi.cpp	Thu Oct 07 18:48:18 2010 +0100
+++ b/hostsupport/hostegl/src/eglapi.cpp	Mon Oct 18 18:24:13 2010 +0100
@@ -57,7 +57,9 @@
 #endif
 
 static CEGLState* g_eglState = NULL;
+#if !defined(EGLI_USE_SIMULATOR_EXTENSIONS)
 static bool g_lockInitialized = false;
+#endif
 EGLI_LOCK g_eglLock;
 
 CEGLState* getState()
@@ -457,14 +459,14 @@
     colorDesc->SetAttribute( EGL_COLOR_BUFFER_TYPE, EGL_RGB_BUFFER );
     CEGLConfig* filter = EGLI_NEW CEGLConfig(
                     *colorDesc,
-                    EGL_DONT_CARE,  
-                    EGL_DONT_CARE,
-                    EGL_DONT_CARE,
+                    (EGLBoolean)EGL_DONT_CARE,  
+                    (EGLBoolean)EGL_DONT_CARE,
+                    (EGLenum)EGL_DONT_CARE,
                     EGL_DONT_CARE,
                     0, 0, 0,
                     EGL_DONT_CARE,
                     EGL_DONT_CARE,
-                    EGL_DONT_CARE,
+                    (EGLBoolean)EGL_DONT_CARE,
                     EGL_DONT_CARE,
                     EGL_OPENGL_ES_BIT,
                     0, 0, 0,
@@ -906,7 +908,6 @@
         }
 
     // \note EGLI_ENTER_RET macro will fail if thread allocation didn't succeed
-    CEGLThread* thread = getThread();
 
     surface->Lock();
     //TODO: client apis
@@ -1206,9 +1207,8 @@
         state->RemoveProcess( process->Id() );
         process = NULL;
         }
-#else
+#endif
     releaseState();
-#endif
     return EGL_TRUE;
     }
 
@@ -1940,8 +1940,8 @@
                         }
                     context->SetNativeGLFucntions( nativeFuncs );
                     }
-                EGLINativeDisplayType drawDC = NULL;
-                EGLINativeDisplayType readDC = NULL;
+                EGLINativeDisplayType drawDC = 0;
+                EGLINativeDisplayType readDC = 0;
                 if( drawSurface->Type() == CEGLSurface::PBUFFER_SURFACE ) 
                     {
                     drawDC = ((CEGLPbufferSurface*)drawSurface)->NativeDisplay();