Added usage of OpenGL client storage extension

This improves performance significantly of 10.4
This commit is contained in:
alexey.lysiuk 2014-11-15 17:27:23 +02:00
parent cc8d8928ae
commit 398b36064b

View file

@ -1375,6 +1375,7 @@ static bool s_fullscreenNewAPI;
glGenTextures(1, &m_softwareRenderingTexture); glGenTextures(1, &m_softwareRenderingTexture);
glBindTexture(GL_TEXTURE_RECTANGLE_ARB, m_softwareRenderingTexture); glBindTexture(GL_TEXTURE_RECTANGLE_ARB, m_softwareRenderingTexture);
glPixelStorei(GL_UNPACK_CLIENT_STORAGE_APPLE, GL_TRUE);
glTexParameteri(GL_TEXTURE_RECTANGLE_ARB, GL_TEXTURE_MIN_FILTER, GL_NEAREST); glTexParameteri(GL_TEXTURE_RECTANGLE_ARB, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
glTexParameteri(GL_TEXTURE_RECTANGLE_ARB, GL_TEXTURE_MAG_FILTER, GL_NEAREST); glTexParameteri(GL_TEXTURE_RECTANGLE_ARB, GL_TEXTURE_MAG_FILTER, GL_NEAREST);