OPENGL: Refactor GL extension handling slightly.

This commit is contained in:
Johannes Schickel 2015-12-10 16:42:56 +01:00
parent b5b88ffb22
commit e5e234b864
5 changed files with 35 additions and 10 deletions

View file

@ -105,7 +105,7 @@ void Texture::enableLinearFiltering(bool enable) {
void Texture::allocate(uint width, uint height) {
uint texWidth = width, texHeight = height;
if (!g_extNPOTSupported) {
if (!g_extensions.NPOTSupported) {
texWidth = nextHigher2(texWidth);
texHeight = nextHigher2(texHeight);
}