OPENGL: Refactor GL extension handling slightly.
This commit is contained in:
parent
b5b88ffb22
commit
e5e234b864
5 changed files with 35 additions and 10 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue