OSDN Git Service

Avoid overwriting EGL14.EGL_NO_SURFACE
authorSangkyu Lee <sk82.lee@lge.com>
Fri, 7 Nov 2014 09:55:07 +0000 (18:55 +0900)
committerSangkyu Lee <sk82.lee@lge.com>
Tue, 25 Nov 2014 01:46:06 +0000 (10:46 +0900)
commit7290c24354ccf7efd7afa8fa6ba06689a852fae6
tree16f1d8013b61700f89626b79ec2d0e8e0c6bcc2c
parentc90b7d9c0f1df1cec8afbfebad0f111d878113e7
Avoid overwriting EGL14.EGL_NO_SURFACE

Both EGL14 and EGLExt have the same initialization codes for
EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_CONTEXT and EGL14.EGL_NO_DISPLAY.
Since EGLExt is initialized later, they are overwritten by EGLExt's
initialization codes.
Therefore, EGL_NO_SURFACE returned by methods in EGL14 is not
actually EGL14.EGL_NO_SURFACE object and it makes several problems in
handling error cases.
For instance, "Let's fish" game application cannot be run on L.

To solve the problem, this patch makes EGL14.EGL_NO_SURFACE,
EGL14.EGL_NO_CONTEXT and EGL14.EGL_NO_DISPLAY initialized just once.

Change-Id: Icce878164ff0b715ad2b5a2cd038a9616c7cf1e9
opengl/tools/glgen/stubs/egl/EGLExtcHeader.cpp