small fixes for opengl

small fixes. only 1 texture can be used right now