diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-02-29 00:36:43 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-11-18 15:22:10 +0100 |
commit | c3453fedbd270afe8d9dfc7f288ea7205f029b86 (patch) | |
tree | 57158583f023a50a21cc86811889d3ee3cf07fe4 /src/RenderBackend | |
parent | 9ab59b76c0ece5e261c0152af3f830f48532e103 (diff) |
Begin on physics
Diffstat (limited to 'src/RenderBackend')
-rw-r--r-- | src/RenderBackend/OpenGL/Texture2D.cpp | 1 |
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"); |