aboutsummaryrefslogtreecommitdiff
path: root/src/RenderBackend/OpenGL
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-02-29 00:36:43 +0100
committerdec05eba <dec05eba@protonmail.com>2021-11-18 15:22:10 +0100
commitc3453fedbd270afe8d9dfc7f288ea7205f029b86 (patch)
tree57158583f023a50a21cc86811889d3ee3cf07fe4 /src/RenderBackend/OpenGL
parent9ab59b76c0ece5e261c0152af3f830f48532e103 (diff)
Begin on physics
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");