X-Git-Url: https://ecere.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ecere%2Fsrc%2Fgfx%2FnewFonts%2FdrawManager.ec;h=85c94411c44e0efc5445f9a6c6bc680aa9442ae6;hb=ac8de5cec494e4efb4a01113c15a4310b923f507;hp=340405e10645188d039b0f3622ecfb787eae54e4;hpb=4f926c1795674d3923b9baf0c32a3da1f8e701b0;p=sdk diff --git a/ecere/src/gfx/newFonts/drawManager.ec b/ecere/src/gfx/newFonts/drawManager.ec index 340405e..85c9441 100644 --- 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