mirror of
https://github.com/NoelFB/blah.git
synced 2024-11-29 17:08:56 +08:00
some opengl defaults
This commit is contained in:
parent
71043af92a
commit
a32b08267a
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user