Check glGetError only on Symbian

This commit is contained in:
Shinovon 2025-07-22 13:09:18 +05:00
parent dc25f28774
commit d05f5cc34d
2 changed files with 8 additions and 0 deletions

View File

@ -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
}

View File

@ -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
}