ecere/gfx/newFonts/drawManager: public prehistoricOpenGL flag
[sdk] / 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