Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f926c1
)
ecere/gfx/newFonts/drawManager: public prehistoricOpenGL flag
author
Jerome St-Louis
<jerome@ecere.com>
Sat, 16 Jan 2016 07:48:13 +0000
(
02:48
-0500)
committer
Jerome St-Louis
<jerome@ecere.com>
Mon, 21 Nov 2016 14:18:43 +0000
(09:18 -0500)
ecere/src/gfx/newFonts/drawManager.ec
patch
|
blob
|
history
diff --git
a/ecere/src/gfx/newFonts/drawManager.ec
b/ecere/src/gfx/newFonts/drawManager.ec
index
340405e
..
85c9441
100644
(file)
--- a/
ecere/src/gfx/newFonts/drawManager.ec
+++ b/
ecere/src/gfx/newFonts/drawManager.ec
@@
-607,7
+607,7
@@
static inline int dmSortImagesCmp( DMImageBuffer *draw0, DMImageBuffer *draw1 )
////
// TOFIX: Make this private, have a property
-public class DrawManagerFlags : uint32 { bool prehistoricOpenGL:1; }
+public class DrawManagerFlags : uint32 {
public:
bool prehistoricOpenGL:1; }
public class DrawManager
{
@@
-1376,7
+1376,8
@@
public:
glBindBuffer( GL_ARRAY_BUFFER, 0 );
glabCurArrayBuffer = 0;
- glUseProgram( prevProgram );
+ if( !flags.prehistoricOpenGL )
+ glUseProgram( prevProgram );
// Restore OpenGL state
// FIXME: no glPushAttrib() in core profile
//#ifndef SHADERS