mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-04 12:55:22 +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;
|
return m_handle != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool createFromBinary(const uint8_t* binary, size_t size, GLenum format) {
|
bool createFromBinary(const uint8_t* binary, size_t size, GLenum format) {
|
||||||
m_handle = glCreateProgram();
|
m_handle = glCreateProgram();
|
||||||
glProgramBinary(m_handle, format, binary, size);
|
glProgramBinary(m_handle, format, binary, size);
|
||||||
|
|
||||||
GLint success;
|
GLint success;
|
||||||
glGetProgramiv(m_handle, GL_LINK_STATUS, &success);
|
glGetProgramiv(m_handle, GL_LINK_STATUS, &success);
|
||||||
|
|
||||||
if (!success) {
|
if (!success) {
|
||||||
char buf[4096];
|
char buf[4096];
|
||||||
glGetProgramInfoLog(m_handle, 4096, nullptr, buf);
|
glGetProgramInfoLog(m_handle, 4096, nullptr, buf);
|
||||||
fprintf(stderr, "Failed to link program\nError: %s\n", buf);
|
fprintf(stderr, "Failed to link program\nError: %s\n", buf);
|
||||||
glDeleteProgram(m_handle);
|
glDeleteProgram(m_handle);
|
||||||
|
|
||||||
m_handle = 0;
|
m_handle = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return m_handle != 0;
|
return m_handle != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
GLuint handle() const { return m_handle; }
|
GLuint handle() const { return m_handle; }
|
||||||
bool exists() const { return m_handle != 0; }
|
bool exists() const { return m_handle != 0; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue