|
From: Lasse Kärkkäi. <tr...@us...> - 2010-01-23 07:05:59
|
Module: performous
Branch: master
Commit: 40b54e86139021b247d586b217a1e4af31cd1541
Author: Lasse Karkkainen <tro...@tr...>
Date: Sat Jan 23 09:05:49 2010 +0200
Use GLEW_ARB_texture_non_power_of_two instead of GL_~ (which also compiled fine on my system for some reason)
---
game/surface.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/game/surface.cc b/game/surface.cc
index 1328491..aea4965 100644
--- a/game/surface.cc
+++ b/game/surface.cc
@@ -82,7 +82,7 @@ void Texture::load(unsigned int width, unsigned int height, pix::Format format,
PixFmt const& f = getPixFmt(format);
glPixelStorei(GL_UNPACK_SWAP_BYTES, f.swap);
// Load the data into texture
- if ((isPow2(width) && isPow2(height)) || GL_ARB_texture_non_power_of_two) { // Can directly load the texture
+ if ((isPow2(width) && isPow2(height)) || GLEW_ARB_texture_non_power_of_two) { // Can directly load the texture
glTexImage2D(type(), 0, GL_RGBA, width, height, 0, f.format, f.type, buffer);
} else {
int newWidth = prevPow2(width);
|