rendering opengl and directx with multiple textures