Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccbcec1
)
ecere/gfx/drivers/OpenGL: Disabling flippingBuffer on GL ES
author
Jerome St-Louis
<jerome@ecere.com>
Wed, 3 Dec 2014 10:05:08 +0000
(
05:05
-0500)
committer
Jerome St-Louis
<jerome@ecere.com>
Sun, 15 Feb 2015 19:40:22 +0000
(14:40 -0500)
- Save on some precious memory
- Warning: GrabScreen will crash... TODO: Allocate as needed
ecere/src/gfx/drivers/OpenGLDisplayDriver.ec
patch
|
blob
|
history
diff --git
a/ecere/src/gfx/drivers/OpenGLDisplayDriver.ec
b/ecere/src/gfx/drivers/OpenGLDisplayDriver.ec
index
1ce42b3
..
e0f4d3c
100644
(file)
--- a/
ecere/src/gfx/drivers/OpenGLDisplayDriver.ec
+++ b/
ecere/src/gfx/drivers/OpenGLDisplayDriver.ec
@@
-2125,7
+2125,11
@@
class OpenGLDisplayDriver : DisplayDriver
{
oglDisplay.flipBufW = width;
oglDisplay.flipBufH = height;
+#ifdef _GLES
+ result = true;
+#else
oglDisplay.flippingBuffer = renew oglDisplay.flippingBuffer ColorAlpha [width * height];
+#endif
}
if(oglDisplay.flippingBuffer || !width || !height)
result = true;