ecere/gfx/newFonts/drawManager: public prehistoricOpenGL flag
authorJerome St-Louis <jerome@ecere.com>
Sat, 16 Jan 2016 07:48:13 +0000 (02:48 -0500)
committerJerome St-Louis <jerome@ecere.com>
Mon, 21 Nov 2016 14:18:43 +0000 (09:18 -0500)
ecere/src/gfx/newFonts/drawManager.ec

index 340405e..85c9441 100644 (file)
@@ -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