mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-08-05 11:47:17 -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) {
|
static cc_bool UnlockVb(GfxResourceID vb) {
|
||||||
_glBufferData(GL_ARRAY_BUFFER, tmpSize, tmpData, GL_STATIC_DRAW);
|
_glBufferData(GL_ARRAY_BUFFER, tmpSize, tmpData, GL_STATIC_DRAW);
|
||||||
|
#if defined CC_BUILD_SYMBIAN
|
||||||
return _glGetError() != GL_OUT_OF_MEMORY;
|
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) {
|
static cc_bool UnlockVb(GfxResourceID vb) {
|
||||||
glBufferData(GL_ARRAY_BUFFER, tmpSize, tmpData, GL_STATIC_DRAW);
|
glBufferData(GL_ARRAY_BUFFER, tmpSize, tmpData, GL_STATIC_DRAW);
|
||||||
|
#if defined CC_BUILD_SYMBIAN
|
||||||
return glGetError() != GL_OUT_OF_MEMORY;
|
return glGetError() != GL_OUT_OF_MEMORY;
|
||||||
|
#else
|
||||||
|
return true;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user