mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
@@ -5629,6 +5629,29 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
}
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////
|
||||
|
||||
// SAVE
|
||||
|
||||
|
||||
@Override
|
||||
public boolean save(String filename) {
|
||||
|
||||
// Act as opaque surface for the purposes of saving.
|
||||
// This is a hack, primary surface is supposed to be
|
||||
// opaque by default.
|
||||
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