diff options
author | Arun Voleti <ext-arun.voleti@nokia.com> | 2011-04-01 07:05:07 (GMT) |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2011-04-01 07:07:04 (GMT) |
commit | 9009e0e1138b684b7013903551a37c9ac1ebdd4c (patch) | |
tree | fed142e49321fbc57acd6e9f7fd64cc9222c6eb5 /src/plugins/gfxdrivers | |
parent | 7d9ea423e426aa2809e8848856449c7ba8924458 (diff) | |
download | Qt-9009e0e1138b684b7013903551a37c9ac1ebdd4c.zip Qt-9009e0e1138b684b7013903551a37c9ac1ebdd4c.tar.gz Qt-9009e0e1138b684b7013903551a37c9ac1ebdd4c.tar.bz2 |
Modified pvrqwswsegl.c to make PowerVR work for processors using flipbuffer chain
Merge-request: 1083
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'src/plugins/gfxdrivers')
-rw-r--r-- | src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwswsegl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwswsegl.c b/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwswsegl.c index 8a1fddf..f861838 100644 --- a/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwswsegl.c +++ b/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwswsegl.c @@ -39,7 +39,7 @@ ** ****************************************************************************/ -#include <GLES/egltypes.h> +#include <GLES/eglplatform.h> #include <wsegl.h> #include <pvr2d.h> #include <string.h> @@ -202,7 +202,8 @@ static WSEGLError wseglDeleteDrawable(WSEGLDrawableHandle _drawable) PvrQwsDrawable *drawable = (PvrQwsDrawable *)_drawable; if (!drawable || drawable->type == PvrQwsScreen) return WSEGL_SUCCESS; - pvrQwsFreeBuffers(drawable); + if (pvrQwsDisplay.numFlipBuffers == 0) + pvrQwsFreeBuffers(drawable); if (pvrQwsReleaseWindow(drawable)) pvrQwsDestroyDrawable(drawable); return WSEGL_SUCCESS; |