aboutsummaryrefslogtreecommitdiffstats
path: root/src/base
diff options
context:
space:
mode:
authorbasisbit <basisbit@b956fd51-792f-4845-bead-9b4dfca2ff2c>2015-10-20 00:07:57 +0000
committerbasisbit <basisbit@b956fd51-792f-4845-bead-9b4dfca2ff2c>2015-10-20 00:07:57 +0000
commit0b3a0b60fc4646732ca6f1728712d790292f750b (patch)
tree01da2bc02a5118bf6f4c8a598e376348c53293d2 /src/base
parentfea48eb20937c681bc574b0d49a0c9e4197310fe (diff)
downloadusdx-0b3a0b60fc4646732ca6f1728712d790292f750b.tar.gz
usdx-0b3a0b60fc4646732ca6f1728712d790292f750b.tar.xz
usdx-0b3a0b60fc4646732ca6f1728712d790292f750b.zip
* Radeon X1600/X1650 graphics card report that they support NPOT, but they don't. Implemented a check for these graphics cards. (not yet tested if this fixes all of the problems of that card.
* when there was no background set up in the song.txt, trying to switch from visualization to visualization based ProjectM to crash. Fixed this by switching directly to video if there is no background. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@3150 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/base')
-rw-r--r--src/base/UTexture.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/UTexture.pas b/src/base/UTexture.pas
index d497f9be..6edcc46f 100644
--- a/src/base/UTexture.pas
+++ b/src/base/UTexture.pas
@@ -221,7 +221,7 @@ begin
Log.LogInfo('OpenGL vendor ' + glGetString(GL_VENDOR), 'TTextureUnit.Create');
Log.LogInfo('OpenGL renderer ' + glGetString(GL_RENDERER), 'TTextureUnit.Create');
Log.LogInfo('OpenGL version ' + glGetString(GL_VERSION), 'TTextureUnit.Create');
- SupportsNPOT := AnsiContainsStr(glGetString(GL_EXTENSIONS),'texture_non_power_of_two');
+ SupportsNPOT := (AnsiContainsStr(glGetString(GL_EXTENSIONS),'texture_non_power_of_two')) and not (AnsiContainsStr(glGetString(GL_EXTENSIONS), 'Radeon X16'));
Log.LogInfo('OpenGL TextureNPOT-support: ' + BoolToStr(SupportsNPOT), 'TTextureUnit.Create');
end;