mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 06:09:17 +01:00
Multisampling hack to have antialiased onscreen rendering through FBOs
This commit is contained in:
@@ -1706,12 +1706,14 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
|
||||
protected void beginPixelsOp(int op) {
|
||||
if (primarySurface) {
|
||||
// We read or write from the back buffer, where all the
|
||||
// drawing in the current frame is taking place.
|
||||
if (op == OP_READ) {
|
||||
pgl.glReadBuffer(PGL.GL_BACK);
|
||||
} else {
|
||||
pgl.glDrawBuffer(PGL.GL_BACK);
|
||||
if (pgl.primaryIsDoubleBuffered()) {
|
||||
// We read or write from the back buffer, where all the
|
||||
// drawing in the current frame is taking place.
|
||||
if (op == OP_READ) {
|
||||
pgl.glReadBuffer(PGL.GL_BACK);
|
||||
} else {
|
||||
pgl.glDrawBuffer(PGL.GL_BACK);
|
||||
}
|
||||
}
|
||||
offscreenNotCurrent = false;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user