incorporate https://github.com/processing/processing/pull/5881 for FBO fix on Intel HD Graphics 3000 devices

This commit is contained in:
Ben Fry
2019-10-07 18:27:24 -04:00
parent 8f994389c4
commit 269f626f98
4 changed files with 37 additions and 6 deletions

View File

@@ -165,6 +165,17 @@ public abstract class PGL {
protected boolean usingFrontTex = false;
protected boolean needSepFrontTex = false;
/**
* Defines if FBO Layer is allowed in the given environment.
* Using FBO can cause a fatal error during runtime for
* Intel HD Graphics 3000 chipsets (commonly used on older MacBooks)
* <a href="https://github.com/processing/processing/issues/4104">#4104</a>
* The value remains as 'true' unless set false during init.
* TODO There's already code in here to enable/disable the FBO properly,
* this should be making use of that mechanism instead. [fry 191007]
*/
protected boolean fboAllowed = true;
// ........................................................
// Texture rendering