mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 06:09:17 +01:00
making pgl non-static member of PGraphicsOpenGL
This commit is contained in:
@@ -119,7 +119,7 @@ public class Texture implements PConstants {
|
||||
|
||||
|
||||
public Texture() {
|
||||
pgl = PGraphicsOpenGL.pgl;
|
||||
pgl = PGraphicsOpenGL.pgPrimary.pgl;
|
||||
context = pgl.createEmptyContext();
|
||||
|
||||
colorBuffer = false;
|
||||
@@ -147,7 +147,7 @@ public class Texture implements PConstants {
|
||||
* @param params Parameters
|
||||
*/
|
||||
public Texture(int width, int height, Object params) {
|
||||
pgl = PGraphicsOpenGL.pgl;
|
||||
pgl = PGraphicsOpenGL.pgPrimary.pgl;
|
||||
context = pgl.createEmptyContext();
|
||||
|
||||
colorBuffer = false;
|
||||
@@ -1157,7 +1157,7 @@ public class Texture implements PConstants {
|
||||
}
|
||||
|
||||
context = pgl.getCurrentContext();
|
||||
glName = PGraphicsOpenGL.createTextureObject(context);
|
||||
glName = PGraphicsOpenGL.createTextureObject(context, pgl);
|
||||
|
||||
pgl.bindTexture(glTarget, glName);
|
||||
pgl.texParameteri(glTarget, PGL.TEXTURE_MIN_FILTER, glMinFilter);
|
||||
|
||||
Reference in New Issue
Block a user