mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
egl: Correct the default values of surface attributes.
EGL_TEXTURE_FORMAT and EGL_TEXTURE_TARGET should default to EGL_NO_TEXTURE. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
This commit is contained in:
parent
8cdc6c66f9
commit
8a130a65aa
1 changed files with 2 additions and 1 deletions
|
|
@ -26,7 +26,8 @@ _eglInitSurface(_EGLDriver *drv, _EGLSurface *surf, EGLint type,
|
|||
{
|
||||
const char *func;
|
||||
EGLint width = 0, height = 0, largest = 0;
|
||||
EGLint texFormat = 0, texTarget = 0, mipmapTex = 0;
|
||||
EGLint texFormat = EGL_NO_TEXTURE, texTarget = EGL_NO_TEXTURE;
|
||||
EGLint mipmapTex = EGL_FALSE;
|
||||
EGLint renderBuffer = EGL_BACK_BUFFER;
|
||||
#ifdef EGL_VERSION_1_2
|
||||
EGLint colorspace = EGL_COLORSPACE_sRGB;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue