Merge branch 'master' of github.com:processing/processing

This commit is contained in:
Ben Fry
2015-01-28 15:07:59 -05:00
@@ -5629,6 +5629,27 @@ public class PGraphicsOpenGL extends PGraphics {
}
//////////////////////////////////////////////////////////////
// SAVE
@Override
public boolean save(String filename) {
// Act as an opaque surface for the purposes of saving.
if (primarySurface) {
int prevFormat = format;
format = RGB;
boolean result = super.save(filename);
format = prevFormat;
return result;
}
return super.save(filename);
}
//////////////////////////////////////////////////////////////
// LOAD/UPDATE TEXTURE