hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/platform/opengl/opengl_texture.cpp
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2025-08-13 18:39:13 +0200
committerhachem <im@hachem.wtf>2025-08-13 18:39:13 +0200
commit23086a5d33acc66414f1169bf22abe78b3383f94 (patch)
treea895c3e3ab8074118a84aada97ea990b60fba556 /src/platform/opengl/opengl_texture.cpp
parent2d8f706efe6e0a02b3238c2f22e7cdce620e9807 (diff)
fix: more consistent formatting
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);