mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
flush geometry before disabling/enabling lighting
This commit is contained in:
@@ -5675,14 +5675,14 @@ public class PGraphicsOpenGL extends PGraphics {
|
|||||||
|
|
||||||
|
|
||||||
protected void enableLighting() {
|
protected void enableLighting() {
|
||||||
lights = true;
|
|
||||||
flush();
|
flush();
|
||||||
|
lights = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
protected void disableLighting() {
|
protected void disableLighting() {
|
||||||
lights = false;
|
|
||||||
flush();
|
flush();
|
||||||
|
lights = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user