Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
cd1812b4
Commit
cd1812b4
authored
Nov 06, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Nov 09, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Hide NP2 textures support on R500 and earlier cards.
parent
883915fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
directx.c
dlls/wined3d/directx.c
+14
-0
No files found.
dlls/wined3d/directx.c
View file @
cd1812b4
...
...
@@ -2760,6 +2760,20 @@ static void fixup_extensions(WineD3D_GL_Info *gl_info) {
gl_info
->
vs_glsl_constantsF
,
gl_info
->
vs_arb_constantsF
);
gl_info
->
vs_glsl_constantsF
=
gl_info
->
vs_arb_constantsF
;
}
/* MacOS advertises GL_ARB_texture_non_power_of_two on ATI r500 and earlier cards, although
* these cards only support GL_ARB_texture_rectangle(D3DPTEXTURECAPS_NONPOW2CONDITIONAL).
* If real NP2 textures are used, the driver falls back to software. So remove the supported
* flag for this extension
*/
if
(
gl_info
->
supported
[
ARB_TEXTURE_NON_POWER_OF_TWO
]
&&
gl_info
->
gl_vendor
==
VENDOR_ATI
)
{
if
(
gl_info
->
gl_card
==
CARD_ATI_RADEON_X700
||
gl_info
->
gl_card
==
CARD_ATI_RADEON_X1600
||
gl_info
->
gl_card
==
CARD_ATI_RADEON_9500
||
gl_info
->
gl_card
==
CARD_ATI_RADEON_8500
||
gl_info
->
gl_card
==
CARD_ATI_RADEON_7200
||
gl_info
->
gl_card
==
CARD_ATI_RAGE_128PRO
)
{
TRACE
(
"GL_ARB_texture_non_power_of_two advertised on R500 or earlier card, removing
\n
"
);
gl_info
->
supported
[
ARB_TEXTURE_NON_POWER_OF_TWO
]
=
FALSE
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment