added frame to OpenGL texture conversion