commit
842f8888f8
|
@ -158,6 +158,7 @@ RasterFont::RasterFont()
|
||||||
|
|
||||||
// generate shader
|
// generate shader
|
||||||
ProgramShaderCache::CompileShader(s_shader, s_vertexShaderSrc, s_fragmentShaderSrc);
|
ProgramShaderCache::CompileShader(s_shader, s_vertexShaderSrc, s_fragmentShaderSrc);
|
||||||
|
s_shader.Bind();
|
||||||
|
|
||||||
// bound uniforms
|
// bound uniforms
|
||||||
glUniform2f(glGetUniformLocation(s_shader.glprogid,"charSize"), 1.0f / GLfloat(char_count), 1.0f);
|
glUniform2f(glGetUniformLocation(s_shader.glprogid,"charSize"), 1.0f / GLfloat(char_count), 1.0f);
|
||||||
|
|
Loading…
Reference in New Issue