diff options
author | Keith Isdale <keith.isdale@nokia.com> | 2009-11-02 08:03:28 (GMT) |
---|---|---|
committer | Keith Isdale <keith.isdale@nokia.com> | 2009-11-02 08:03:28 (GMT) |
commit | 5d7e254583551659df42e59fab4756994d4211ed (patch) | |
tree | 48f7b5584ceaaca74a97aaa378e0e3c4ecc26ac3 | |
parent | d47bc05931004c7384e77ff358d67feddb84d501 (diff) | |
download | Qt-5d7e254583551659df42e59fab4756994d4211ed.zip Qt-5d7e254583551659df42e59fab4756994d4211ed.tar.gz Qt-5d7e254583551659df42e59fab4756994d4211ed.tar.bz2 |
Compilation error due to undefined EGL_BIND_TO_TEXTURE_RGB for OpenGL
ES enabled build of Qt for Windows CE
Add #ifdef guards around EGL_BIND_TO_TEXTURE_RGB useage
Task-number: QTBUG-5152
Reviewed-by: Trond Kjernåsen
-rw-r--r-- | src/gui/egl/qeglproperties.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/egl/qeglproperties.cpp b/src/gui/egl/qeglproperties.cpp index c61e1d3..2d37edb 100644 --- a/src/gui/egl/qeglproperties.cpp +++ b/src/gui/egl/qeglproperties.cpp @@ -88,8 +88,12 @@ int QEglProperties::value(int name) const #if defined(EGL_ALPHA_MASK_SIZE) case EGL_ALPHA_MASK_SIZE: return 0; #endif +#if defined(EGL_BIND_TO_TEXTURE_RGB) case EGL_BIND_TO_TEXTURE_RGB: return EGL_DONT_CARE; +#endif +#if defined(EGL_BIND_TO_TEXTURE_RGBA) case EGL_BIND_TO_TEXTURE_RGBA: return EGL_DONT_CARE; +#endif #if defined(EGL_COLOR_BUFFER_TYPE) case EGL_COLOR_BUFFER_TYPE: return EGL_RGB_BUFFER; #endif |