mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Merge branch 'master' of github.com:processing/processing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user