Commit 8ce64144 authored by Christian Forfang's avatar Christian Forfang

Added glActiveTexture so correct texture unit is bound. Removed deprecated...

Added glActiveTexture so correct texture unit is bound. Removed deprecated glEnable( GL_TEXTURE_2D )
parent 31a61df2
......@@ -98,8 +98,10 @@ void
text_buffer_render( text_buffer_t * self )
{
glEnable( GL_BLEND );
glEnable( GL_TEXTURE_2D );
glActiveTexture( GL_TEXTURE0 );
glBindTexture( GL_TEXTURE_2D, self->manager->atlas->id );
if( self->manager->atlas->depth == 1 )
{
//glDisable( GL_COLOR_MATERIAL );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment