mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Fix compilation errors with gcc.
This commit is contained in:
parent
74f8e444a0
commit
faad13bf07
|
@ -15,6 +15,8 @@
|
|||
#define SHADER_PRECISION
|
||||
#include "Shaders.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
static GLuint g_vertex_shader_object;
|
||||
static GLuint g_vertex_shader_object_notex;
|
||||
static GLuint g_calc_light_shader_object;
|
||||
|
|
|
@ -161,7 +161,6 @@ private:
|
|||
GLint blockSize, numUniforms;
|
||||
glGetActiveUniformBlockiv(_program, blockIndex, GL_UNIFORM_BLOCK_DATA_SIZE, &blockSize);
|
||||
glGetActiveUniformBlockiv(_program, blockIndex, GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS, &numUniforms);
|
||||
assert(numUniforms == _numUniforms);
|
||||
|
||||
glGetUniformIndices(_program, numUniforms, _strUniformNames, m_indices);
|
||||
glGetActiveUniformsiv(_program, numUniforms, m_indices, GL_UNIFORM_OFFSET, m_offsets);
|
||||
|
|
Loading…
Reference in New Issue
Block a user