Explorar el Código

Fixed uninitialized variable.

Camilla Berglund hace 12 años
padre
commit
28bf3f700d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/egl_context.c

+ 1 - 1
src/egl_context.c

@@ -155,7 +155,7 @@ int _glfwCreateContext(_GLFWwindow* window,
                        const _GLFWfbconfig* fbconfig)
                        const _GLFWfbconfig* fbconfig)
 {
 {
     int attribs[40];
     int attribs[40];
-    EGLint count;
+    EGLint count = 0;
     EGLConfig config;
     EGLConfig config;
     EGLContext share = NULL;
     EGLContext share = NULL;