From a32b08267af939b10d311481c4e2ca0609637b90 Mon Sep 17 00:00:00 2001 From: Noel Berry Date: Thu, 27 Aug 2020 19:43:35 -0700 Subject: [PATCH] some opengl defaults --- private/blah/internal/graphics_opengl.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/private/blah/internal/graphics_opengl.cpp b/private/blah/internal/graphics_opengl.cpp index dccec3d..84dbf70 100644 --- a/private/blah/internal/graphics_opengl.cpp +++ b/private/blah/internal/graphics_opengl.cpp @@ -371,8 +371,8 @@ namespace Blah type == GL_DEBUG_TYPE_OTHER) return; - const char* typeName; - const char* severityName; + const char* typeName = ""; + const char* severityName = ""; switch (type) { @@ -527,6 +527,9 @@ namespace Blah m_filter = filter; m_format = format; framebuffer_parent = false; + m_gl_internal_format = GL_RED; + m_gl_format = GL_RED; + m_gl_type = GL_UNSIGNED_BYTE; if (width > maxTextureSize || height > maxTextureSize) { @@ -771,7 +774,7 @@ namespace Blah Uniforms m_uniforms; public: - GLint uniforms_loc[BLAH_UNIFORMS]; + GLint uniforms_loc[BLAH_UNIFORMS] = { 0 }; OpenGL_Shader(const ShaderData* data) {