added JOGL.getGL() utility function, restore original USE_JOGL_FBOLAYER

value (true for OSX)
This commit is contained in:
codeanticode
2014-01-21 15:36:12 -05:00
parent 864281466e
commit c27d1bf72c
3 changed files with 41 additions and 22 deletions

View File

@@ -58,7 +58,7 @@ public abstract class PGL {
protected int glContext;
/** true if this is the GL interface for a primary surface PGraphics */
protected boolean primaryPGL;
public boolean primaryPGL;
// ........................................................
@@ -914,7 +914,6 @@ public abstract class PGL {
PGL ppgl = primaryPGL ? this : pg.getPrimaryPGL();
if (!ppgl.loadedTex2DShader || ppgl.tex2DShaderContext != ppgl.glContext) {
System.out.println("Initializing PGL texture shader");
String vertSource = PApplet.join(texVertShaderSource, "\n");
String fragSource = PApplet.join(tex2DFragShaderSource, "\n");
ppgl.tex2DVertShader = createShader(VERTEX_SHADER, vertSource);