File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
core/src/processing/opengl Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -3274,30 +3274,29 @@ public void smooth(int level) {
32743274 }
32753275 }
32763276
3277-
3277+ */
32783278 @ Override
32793279 public void noSmooth () {
32803280 if (smoothDisabled ) return ;
32813281
3282- smooth = false ;
3282+ smooth = 0 ;
32833283 textureSampling = Texture .POINT ;
32843284
3285- if (1 < quality) {
3285+ restartPGL ();
3286+ if (0 < smooth ) {
32863287 smoothCallCount ++;
32873288 if (parent .frameCount - lastSmoothCall < 30 && 5 < smoothCallCount ) {
32883289 smoothDisabled = true ;
32893290 PGraphics .showWarning (TOO_MANY_SMOOTH_CALLS_ERROR );
32903291 }
32913292 lastSmoothCall = parent .frameCount ;
32923293
3293- quality = 0;
3294+ smooth = 0 ;
3295+
32943296
3295- // This will trigger a surface restart next time
3296- // requestDraw() is called.
3297- restartPGL();
32983297 }
32993298 }
3300- */
3299+
33013300
33023301
33033302 //////////////////////////////////////////////////////////////
You can’t perform that action at this time.
0 commit comments