Resize OpenGL texture as needed