1
0
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:
Sergey Lipskiy 2015-04-12 18:50:20 +06:00
parent 74f8e444a0
commit faad13bf07
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

@ -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);