From d05f5cc34dfc045161b3b44a824a60926720e50c Mon Sep 17 00:00:00 2001 From: Shinovon Date: Tue, 22 Jul 2025 13:09:18 +0500 Subject: [PATCH] Check glGetError only on Symbian --- src/Graphics_GL1.c | 4 ++++ src/Graphics_GL2.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/Graphics_GL1.c b/src/Graphics_GL1.c index f9c9fd739..02a21331c 100644 --- a/src/Graphics_GL1.c +++ b/src/Graphics_GL1.c @@ -148,7 +148,11 @@ void* Gfx_LockVb(GfxResourceID vb, VertexFormat fmt, int count) { static cc_bool UnlockVb(GfxResourceID vb) { _glBufferData(GL_ARRAY_BUFFER, tmpSize, tmpData, GL_STATIC_DRAW); +#if defined CC_BUILD_SYMBIAN return _glGetError() != GL_OUT_OF_MEMORY; +#else + return true; +#endif } diff --git a/src/Graphics_GL2.c b/src/Graphics_GL2.c index d40cf8349..1803597e8 100644 --- a/src/Graphics_GL2.c +++ b/src/Graphics_GL2.c @@ -120,7 +120,11 @@ void* Gfx_LockVb(GfxResourceID vb, VertexFormat fmt, int count) { static cc_bool UnlockVb(GfxResourceID vb) { glBufferData(GL_ARRAY_BUFFER, tmpSize, tmpData, GL_STATIC_DRAW); +#if defined CC_BUILD_SYMBIAN return glGetError() != GL_OUT_OF_MEMORY; +#else + return true; +#endif }