projects
/
blender.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tweak to commit related to non-power-of-two textures, some cards claim to
[blender.git]
/
source
/
gameengine
/
Ketsji
/
BL_Texture.cpp
diff --git
a/source/gameengine/Ketsji/BL_Texture.cpp
b/source/gameengine/Ketsji/BL_Texture.cpp
index fee8047642d5533e55d91cf9a0938b5216ec78b4..e4e3fb95543d2e4f121c39eef41af60739095b8e 100644
(file)
--- a/
source/gameengine/Ketsji/BL_Texture.cpp
+++ b/
source/gameengine/Ketsji/BL_Texture.cpp
@@
-29,6
+29,7
@@
#include "MEM_guardedalloc.h"
#include "GPU_draw.h"
#include "MEM_guardedalloc.h"
#include "GPU_draw.h"
+#include "GPU_extensions.h"
extern "C" {
// envmaps
extern "C" {
// envmaps
@@
-170,7
+171,7
@@
bool BL_Texture::InitFromImage(int unit, Image *img, bool mipmap)
void BL_Texture::InitGLTex(unsigned int *pix,int x,int y,bool mipmap)
{
void BL_Texture::InitGLTex(unsigned int *pix,int x,int y,bool mipmap)
{
- if (!G
LEW_ARB_texture_non_power_of_two
&& (!is_power_of_2_i(x) || !is_power_of_2_i(y)) ) {
+ if (!G
PU_non_power_of_two_support()
&& (!is_power_of_2_i(x) || !is_power_of_2_i(y)) ) {
InitNonPow2Tex(pix, x,y,mipmap);
return;
}
InitNonPow2Tex(pix, x,y,mipmap);
return;
}