Procházet zdrojové kódy

Fixed another case of issue #538 (check for non power of two support does not cover all possibilities)

Alex Szpakowski před 12 roky
rodič
revize
65a3206ae4
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/modules/graphics/opengl/Quad.cpp

+ 1 - 1
src/modules/graphics/opengl/Quad.cpp

@@ -48,7 +48,7 @@ Quad::~Quad()
 
 
 void Quad::refresh(const Viewport &v, float sw, float sh)
 void Quad::refresh(const Viewport &v, float sw, float sh)
 {
 {
-	if (!GLEE_ARB_texture_non_power_of_two)
+	if (!(GLEE_VERSION_2_0 || GLEE_ARB_texture_non_power_of_two))
 	{
 	{
 		sw = next_p2(sw);
 		sw = next_p2(sw);
 		sh = next_p2(sh);
 		sh = next_p2(sh);