hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/platform/opengl/opengl_texture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/platform/opengl/opengl_texture.cpp')
-rw-r--r--src/platform/opengl/opengl_texture.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/platform/opengl/opengl_texture.cpp b/src/platform/opengl/opengl_texture.cpp
index 100909f..53ed06c 100644
--- a/src/platform/opengl/opengl_texture.cpp
+++ b/src/platform/opengl/opengl_texture.cpp
@@ -7,9 +7,9 @@ namespace Donut
: m_width(width), m_height(height)
{
m_internal_format = GL_RGBA8;
- m_data_format = GL_RGBA;
+ m_data_format = GL_RGBA;
- glCreateTextures(GL_TEXTURE_2D, 1, &m_renderer_id);
+ glCreateTextures(GL_TEXTURE_2D, 1, &m_renderer_id);
glTextureStorage2D(m_renderer_id, 1, m_internal_format, m_width, m_height);
glTextureParameteri(m_renderer_id, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
@@ -22,12 +22,12 @@ namespace Donut
OpenGLTexture2D::OpenGLTexture2D(const std::string& path)
: m_path(path)
{
- m_width = 1;
- m_height = 1;
+ m_width = 1;
+ m_height = 1;
m_internal_format = GL_RGBA8;
- m_data_format = GL_RGBA;
+ m_data_format = GL_RGBA;
- glCreateTextures(GL_TEXTURE_2D, 1, &m_renderer_id);
+ glCreateTextures(GL_TEXTURE_2D, 1, &m_renderer_id);
glTextureStorage2D(m_renderer_id, 1, m_internal_format, m_width, m_height);
glTextureParameteri(m_renderer_id, GL_TEXTURE_MIN_FILTER, GL_LINEAR);