OSDN Git Service

EGL: Fix error for eglCreateWindowSurface
authorJonathan Hamilton <jonathan.hamilton@imgtec.com>
Wed, 17 Jul 2013 16:41:42 +0000 (09:41 -0700)
committerJonathan Hamilton <jonathan.hamilton@imgtec.com>
Wed, 17 Jul 2013 16:52:41 +0000 (09:52 -0700)
commit77a9b4a6bd21188e2744ae9dcd8092c6837bff7c
tree4758b365f4a8badca17aa5260845afab674a8c21
parent674816078588d0951c3c9bdaf26ecc9e9b3f2e0a
EGL: Fix error for eglCreateWindowSurface

The EGL 1.4 spec section 3.5.1 states that EGL_BAD_ALLOC should be set
if the supplied window already has an associated EGLSurface, not
EGL_BAD_NATIVE_WINDOW as is currently set.

Change-Id: If1598617f4e31904f2045560ae1cdf49d8a697dc
opengl/libs/EGL/eglApi.cpp