some opengl defaults

This commit is contained in:
Noel Berry 2020-08-27 19:43:35 -07:00
parent 71043af92a
commit a32b08267a

View File

@ -371,8 +371,8 @@ namespace Blah
type == GL_DEBUG_TYPE_OTHER) type == GL_DEBUG_TYPE_OTHER)
return; return;
const char* typeName; const char* typeName = "";
const char* severityName; const char* severityName = "";
switch (type) switch (type)
{ {
@ -527,6 +527,9 @@ namespace Blah
m_filter = filter; m_filter = filter;
m_format = format; m_format = format;
framebuffer_parent = false; 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) if (width > maxTextureSize || height > maxTextureSize)
{ {
@ -771,7 +774,7 @@ namespace Blah
Uniforms m_uniforms; Uniforms m_uniforms;
public: public:
GLint uniforms_loc[BLAH_UNIFORMS]; GLint uniforms_loc[BLAH_UNIFORMS] = { 0 };
OpenGL_Shader(const ShaderData* data) OpenGL_Shader(const ShaderData* data)
{ {