mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-11 08:39:48 +12:00
Indentation
This commit is contained in:
parent
884b156595
commit
44e5df1d3a
1 changed files with 14 additions and 14 deletions
28
third_party/opengl/opengl.hpp
vendored
28
third_party/opengl/opengl.hpp
vendored
|
@ -432,24 +432,24 @@ namespace OpenGL {
|
|||
return m_handle != 0;
|
||||
}
|
||||
|
||||
bool createFromBinary(const uint8_t* binary, size_t size, GLenum format) {
|
||||
m_handle = glCreateProgram();
|
||||
glProgramBinary(m_handle, format, binary, size);
|
||||
bool createFromBinary(const uint8_t* binary, size_t size, GLenum format) {
|
||||
m_handle = glCreateProgram();
|
||||
glProgramBinary(m_handle, format, binary, size);
|
||||
|
||||
GLint success;
|
||||
glGetProgramiv(m_handle, GL_LINK_STATUS, &success);
|
||||
GLint success;
|
||||
glGetProgramiv(m_handle, GL_LINK_STATUS, &success);
|
||||
|
||||
if (!success) {
|
||||
char buf[4096];
|
||||
glGetProgramInfoLog(m_handle, 4096, nullptr, buf);
|
||||
fprintf(stderr, "Failed to link program\nError: %s\n", buf);
|
||||
glDeleteProgram(m_handle);
|
||||
if (!success) {
|
||||
char buf[4096];
|
||||
glGetProgramInfoLog(m_handle, 4096, nullptr, buf);
|
||||
fprintf(stderr, "Failed to link program\nError: %s\n", buf);
|
||||
glDeleteProgram(m_handle);
|
||||
|
||||
m_handle = 0;
|
||||
}
|
||||
m_handle = 0;
|
||||
}
|
||||
|
||||
return m_handle != 0;
|
||||
}
|
||||
return m_handle != 0;
|
||||
}
|
||||
|
||||
GLuint handle() const { return m_handle; }
|
||||
bool exists() const { return m_handle != 0; }
|
||||
|
|
Loading…
Add table
Reference in a new issue