From 9e5d6a03c3cfdf6525fea247bac79d0e04a92c46 Mon Sep 17 00:00:00 2001 From: MrDev023 Date: Fri, 20 Jan 2017 22:55:07 +0100 Subject: [PATCH] Bug fixes and add Label --- .idea/workspace.xml | 45 ++++++++++----------------- src/globalgamejam/render/Texture.java | 2 +- 2 files changed, 18 insertions(+), 29 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index a1e3487..7273826 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,18 +2,7 @@ - - - - - - - - - - - @@ -1101,16 +1090,6 @@ - - - - - - - - - - @@ -1155,10 +1134,20 @@ + + + + + + + + + + - - + + diff --git a/src/globalgamejam/render/Texture.java b/src/globalgamejam/render/Texture.java index 39655dd..18c8e7f 100644 --- a/src/globalgamejam/render/Texture.java +++ b/src/globalgamejam/render/Texture.java @@ -22,7 +22,6 @@ public class Texture { int id; public Texture(int width,int height,int id){ - System.out.println("Texture loaded ! " + width + "x" + height + " id:" + id); this.id = id; this.width = width; this.height = height; @@ -83,6 +82,7 @@ public class Texture { glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, image.getWidth(), image.getHeight(), 0, GL_RGBA, GL_UNSIGNED_BYTE, buffer); glBindTexture(GL_TEXTURE_2D, 0); + System.out.println("Texture loaded ! " + width + "x" + height + " id:" + textureID); return new Texture(image.getWidth(),image.getHeight(),textureID); }