From c3453fedbd270afe8d9dfc7f288ea7205f029b86 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 29 Feb 2020 00:36:43 +0100 Subject: Begin on physics --- src/RenderBackend/OpenGL/Texture2D.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/RenderBackend/OpenGL') 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"); -- cgit v1.2.3