diff options
Diffstat (limited to 'src/texture.cpp')
-rw-r--r-- | src/texture.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/texture.cpp b/src/texture.cpp index da39ec0..b47c3c7 100644 --- a/src/texture.cpp +++ b/src/texture.cpp @@ -52,12 +52,12 @@ ColorTex::ColorTex(const Color& color) }; GLuint object; - glActiveTexture(GL_TEXTURE0); glGenTextures(1, &object); // Turns "object" into a texture glBindTexture(GL_TEXTURE_2D, object); // Binds "object" to the top of the stack glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 1, 1, 0, GL_RGBA, GL_UNSIGNED_BYTE, data); - Texture("", object, vec2()); + tex = object; + dim = vec2(1, 1); } static std::vector<Texture> loadedTextures; |