hint() and begin/endPGL bits

This commit is contained in:
benfry
2012-02-09 21:35:19 +00:00
parent 1793681ec1
commit be8176ce8c

View File

@@ -1496,6 +1496,17 @@ public class PGraphicsOpenGL extends PGraphics {
}
public PGL beginPGL() {
saveGLState();
return pgl;
}
public void endPGL() {
restoreGLState();
}
public void updatePGL() {
if (primarySurface) {
pgl.updatePrimary();
@@ -1681,10 +1692,10 @@ public class PGraphicsOpenGL extends PGraphics {
// HINTS
public void hint(int which) {
boolean oldValue = which > 0 ? hints[which] : hints[-which];
boolean oldValue = hints[Math.abs(which)];
super.hint(which);
boolean newValue = which > 0 ? hints[which] : hints[-which];
boolean newValue = hints[Math.abs(which)];
if (oldValue == newValue) {
return;
}