mirror of
https://github.com/processing/processing4.git
synced 2026-02-18 21:05:36 +01:00
set viewport in PGL.drawTexture(), fixes #1869
This commit is contained in:
@@ -3372,10 +3372,8 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
if (textTex.currentTex != info.texIndex) {
|
||||
textTex.setTexture(info.texIndex);
|
||||
}
|
||||
PImage tex = textTex.getCurrentTexture();
|
||||
|
||||
beginShape(QUADS);
|
||||
texture(tex);
|
||||
texture(textTex.getCurrentTexture());
|
||||
vertex(x0, y0, info.u0, info.v0);
|
||||
vertex(x1, y0, info.u1, info.v0);
|
||||
vertex(x1, y1, info.u1, info.v1);
|
||||
|
||||
Reference in New Issue
Block a user