mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 06:09:17 +01:00
disabled mipmapping on android, flush geometry when switching shaders
This commit is contained in:
@@ -5412,6 +5412,7 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
|
||||
|
||||
public void setShader(PShader shader, int kind) {
|
||||
flush(); // Flushing geometry with a different shader.
|
||||
if (kind == FLAT_SHADER) {
|
||||
polyFlatShader = (PolyFlatShader) shader;
|
||||
} else if (kind == LIGHT_SHADER) {
|
||||
@@ -5431,6 +5432,7 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
|
||||
|
||||
public void defaultShader(int kind) {
|
||||
flush(); // Flushing geometry with a different shader.
|
||||
if (kind == FLAT_SHADER) {
|
||||
if (defPolyFlatShader == null || defPolyFlatShader.contextIsOutdated()) {
|
||||
defPolyFlatShader = new PolyFlatShader(parent, defPolyFlatShaderVertURL, defPolyNoTexShaderFragURL);
|
||||
|
||||
Reference in New Issue
Block a user