mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-08-03 10:47:39 -04:00
Check glGetError only on Symbian
This commit is contained in:
parent
dc25f28774
commit
d05f5cc34d
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user