aboutsummaryrefslogtreecommitdiff
path: root/src/RenderBackend/OpenGL
diff options
context:
space:
mode:
Diffstat (limited to 'src/RenderBackend/OpenGL')
-rw-r--r--src/RenderBackend/OpenGL/Texture2D.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/RenderBackend/OpenGL/Texture2D.cpp b/src/RenderBackend/OpenGL/Texture2D.cpp
index 089a5f1..fa84353 100644
--- a/src/RenderBackend/OpenGL/Texture2D.cpp
+++ b/src/RenderBackend/OpenGL/Texture2D.cpp
@@ -67,6 +67,7 @@ namespace amalgine {
glBindTexture(GL_TEXTURE_2D, texture_ref);
//output_gl_error("bind texture");
+ // TODO: Take into account GL_ARB_texture_non_power_of_two and resize the image to power of two
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, image->getWidth(), image->getHeight(), 0, GL_RGB, GL_UNSIGNED_BYTE, image->getData());
//output_gl_error("set texture");