aboutsummaryrefslogtreecommitdiff
path: root/src/platform/opengl/texture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/platform/opengl/texture.cpp')
-rw-r--r--src/platform/opengl/texture.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/platform/opengl/texture.cpp b/src/platform/opengl/texture.cpp
index 12e07f1..d2d2233 100644
--- a/src/platform/opengl/texture.cpp
+++ b/src/platform/opengl/texture.cpp
@@ -11,10 +11,10 @@
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
-// NOTE: This file targets OpenGL 4.1 (the maximum macOS exposes). It uses the
+// this file targets OpenGL 4.1 (the maximum macOS exposes). it uses the
// classic bind-based texture API rather than 4.5 Direct State Access
// (glCreateTextures / glTextureStorage2D / glTextureParameteri / glBindTextureUnit),
-// none of which exist on macOS. It also hosts the single STB_IMAGE_IMPLEMENTATION
+// none of which exist on macOS. it also hosts the single STB_IMAGE_IMPLEMENTATION
// for the whole build (the Vulkan backend links stbi_loadf from here too).
namespace Donut
@@ -84,7 +84,7 @@ namespace Donut
auto Texture2D::bind_as_image(uint32_t slot, bool read_only) const -> void
{
- // Image load/store is OpenGL 4.2 and unavailable on macOS. Guard the
+ // image load/store is OpenGL 4.2 and unavailable on macOS. guard the
// function pointer so this degrades to a no-op instead of crashing.
if (glBindImageTexture == nullptr)
return;
@@ -148,12 +148,12 @@ namespace Donut
DONUT_ERROR("Failed to load HDRI: {}", path);
float default_sky[6 * 4] =
{
- 0.5f, 0.7f, 1.0f, 1.0f, // Right
- 0.5f, 0.7f, 1.0f, 1.0f, // Left
- 0.5f, 0.7f, 1.0f, 1.0f, // Top
- 0.5f, 0.7f, 1.0f, 1.0f, // Bottom
- 0.5f, 0.7f, 1.0f, 1.0f, // Front
- 0.5f, 0.7f, 1.0f, 1.0f // Back
+ 0.5f, 0.7f, 1.0f, 1.0f, // right
+ 0.5f, 0.7f, 1.0f, 1.0f, // left
+ 0.5f, 0.7f, 1.0f, 1.0f, // top
+ 0.5f, 0.7f, 1.0f, 1.0f, // bottom
+ 0.5f, 0.7f, 1.0f, 1.0f, // front
+ 0.5f, 0.7f, 1.0f, 1.0f // back
};
glBindTexture(GL_TEXTURE_CUBE_MAP, m_renderer_id);