File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,6 @@ void setup() {
114114 setupGUI();
115115
116116 pgl = (PGraphicsOpenGL ) g;
117- gl = pgl. pgl. gl;
118117
119118 noStroke ();
120119
@@ -141,7 +140,7 @@ void draw() {
141140 else background (255 );
142141
143142 if (useBlendWhite || useBlendBlack) {
144- pgl . beginPGL();
143+ gl = (( PJOGL ) beginPGL()) . gl . getGL2 ();
145144 if (useBlendWhite) gl. glBlendFunc(GL. GL_ONE_MINUS_SRC_ALPHA , GL. GL_ONE_MINUS_SRC_COLOR );
146145 if (useBlendBlack) gl. glBlendFunc(GL. GL_SRC_ALPHA , GL. GL_DST_COLOR );
147146 }
Original file line number Diff line number Diff line change @@ -118,7 +118,6 @@ void setup() {
118118 setupGUI();
119119
120120 pgl = (PGraphicsOpenGL ) g;
121- gl = pgl. pgl. gl;
122121
123122 noStroke ();
124123
@@ -142,7 +141,7 @@ void draw() {
142141 else background (255 );
143142
144143 if (useBlendWhite || useBlendBlack) {
145- pgl . beginPGL();
144+ gl = (( PJOGL ) beginPGL()) . gl . getGL2 ();
146145 if (useBlendWhite) gl. glBlendFunc(GL. GL_ONE_MINUS_SRC_ALPHA , GL. GL_ONE_MINUS_SRC_COLOR );
147146 if (useBlendBlack) gl. glBlendFunc(GL. GL_SRC_ALPHA , GL. GL_DST_COLOR );
148147 }
You can’t perform that action at this time.
0 commit comments