Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
c411b45d
Commit
c411b45d
authored
Jul 20, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 21, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use a more consistent name for the normalized texrect "extension".
parent
0344bc42
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
13 deletions
+13
-13
device.c
dlls/wined3d/device.c
+1
-1
directx.c
dlls/wined3d/directx.c
+1
-1
state.c
dlls/wined3d/state.c
+8
-8
surface.c
dlls/wined3d/surface.c
+1
-1
texture.c
dlls/wined3d/texture.c
+1
-1
wined3d_gl.h
dlls/wined3d/wined3d_gl.h
+1
-1
No files found.
dlls/wined3d/device.c
View file @
c411b45d
...
...
@@ -6199,7 +6199,7 @@ static HRESULT updateSurfaceDesc(IWineD3DSurfaceImpl *surface, const WINED3DPRES
surface
->
currentDesc
.
Width
=
pPresentationParameters
->
BackBufferWidth
;
surface
->
currentDesc
.
Height
=
pPresentationParameters
->
BackBufferHeight
;
if
(
gl_info
->
supported
[
ARB_TEXTURE_NON_POWER_OF_TWO
]
||
gl_info
->
supported
[
ARB_TEXTURE_RECTANGLE
]
||
gl_info
->
supported
[
WINE_NORMALIZED_TEXRECT
])
||
gl_info
->
supported
[
WINE
D3D_GL
_NORMALIZED_TEXRECT
])
{
surface
->
pow2Width
=
pPresentationParameters
->
BackBufferWidth
;
surface
->
pow2Height
=
pPresentationParameters
->
BackBufferHeight
;
...
...
dlls/wined3d/directx.c
View file @
c411b45d
...
...
@@ -789,7 +789,7 @@ static void quirk_ati_dx9(struct wined3d_gl_info *gl_info)
{
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
;
gl_info
->
supported
[
WINE_NORMALIZED_TEXRECT
]
=
TRUE
;
gl_info
->
supported
[
WINE
D3D_GL
_NORMALIZED_TEXRECT
]
=
TRUE
;
}
/* fglrx has the same structural issues as the one described in quirk_apple_glsl_constants, although
...
...
dlls/wined3d/state.c
View file @
c411b45d
...
...
@@ -5416,28 +5416,28 @@ const struct StateEntryTemplate ffp_vertexstate_template[] = {
* otherwise, register sampler_texmatrix, which takes care of updating the texture matrix
*/
{
STATE_SAMPLER
(
0
),
{
0
,
NULL
},
ARB_TEXTURE_NON_POWER_OF_TWO
},
{
STATE_SAMPLER
(
0
),
{
0
,
NULL
},
WINE
_NORMALIZED_TEXRECT
},
{
STATE_SAMPLER
(
0
),
{
0
,
NULL
},
WINE
D3D_GL_NORMALIZED_TEXRECT
},
{
STATE_SAMPLER
(
0
),
{
STATE_SAMPLER
(
0
),
sampler_texmatrix
},
WINED3D_GL_EXT_NONE
},
{
STATE_SAMPLER
(
1
),
{
0
,
NULL
},
ARB_TEXTURE_NON_POWER_OF_TWO
},
{
STATE_SAMPLER
(
1
),
{
0
,
NULL
},
WINE
_NORMALIZED_TEXRECT
},
{
STATE_SAMPLER
(
1
),
{
0
,
NULL
},
WINE
D3D_GL_NORMALIZED_TEXRECT
},
{
STATE_SAMPLER
(
1
),
{
STATE_SAMPLER
(
1
),
sampler_texmatrix
},
WINED3D_GL_EXT_NONE
},
{
STATE_SAMPLER
(
2
),
{
0
,
NULL
},
ARB_TEXTURE_NON_POWER_OF_TWO
},
{
STATE_SAMPLER
(
2
),
{
0
,
NULL
},
WINE
_NORMALIZED_TEXRECT
},
{
STATE_SAMPLER
(
2
),
{
0
,
NULL
},
WINE
D3D_GL_NORMALIZED_TEXRECT
},
{
STATE_SAMPLER
(
2
),
{
STATE_SAMPLER
(
2
),
sampler_texmatrix
},
WINED3D_GL_EXT_NONE
},
{
STATE_SAMPLER
(
3
),
{
0
,
NULL
},
ARB_TEXTURE_NON_POWER_OF_TWO
},
{
STATE_SAMPLER
(
3
),
{
0
,
NULL
},
WINE
_NORMALIZED_TEXRECT
},
{
STATE_SAMPLER
(
3
),
{
0
,
NULL
},
WINE
D3D_GL_NORMALIZED_TEXRECT
},
{
STATE_SAMPLER
(
3
),
{
STATE_SAMPLER
(
3
),
sampler_texmatrix
},
WINED3D_GL_EXT_NONE
},
{
STATE_SAMPLER
(
4
),
{
0
,
NULL
},
ARB_TEXTURE_NON_POWER_OF_TWO
},
{
STATE_SAMPLER
(
4
),
{
0
,
NULL
},
WINE
_NORMALIZED_TEXRECT
},
{
STATE_SAMPLER
(
4
),
{
0
,
NULL
},
WINE
D3D_GL_NORMALIZED_TEXRECT
},
{
STATE_SAMPLER
(
4
),
{
STATE_SAMPLER
(
4
),
sampler_texmatrix
},
WINED3D_GL_EXT_NONE
},
{
STATE_SAMPLER
(
5
),
{
0
,
NULL
},
ARB_TEXTURE_NON_POWER_OF_TWO
},
{
STATE_SAMPLER
(
5
),
{
0
,
NULL
},
WINE
_NORMALIZED_TEXRECT
},
{
STATE_SAMPLER
(
5
),
{
0
,
NULL
},
WINE
D3D_GL_NORMALIZED_TEXRECT
},
{
STATE_SAMPLER
(
5
),
{
STATE_SAMPLER
(
5
),
sampler_texmatrix
},
WINED3D_GL_EXT_NONE
},
{
STATE_SAMPLER
(
6
),
{
0
,
NULL
},
ARB_TEXTURE_NON_POWER_OF_TWO
},
{
STATE_SAMPLER
(
6
),
{
0
,
NULL
},
WINE
_NORMALIZED_TEXRECT
},
{
STATE_SAMPLER
(
6
),
{
0
,
NULL
},
WINE
D3D_GL_NORMALIZED_TEXRECT
},
{
STATE_SAMPLER
(
6
),
{
STATE_SAMPLER
(
6
),
sampler_texmatrix
},
WINED3D_GL_EXT_NONE
},
{
STATE_SAMPLER
(
7
),
{
0
,
NULL
},
ARB_TEXTURE_NON_POWER_OF_TWO
},
{
STATE_SAMPLER
(
7
),
{
0
,
NULL
},
WINE
_NORMALIZED_TEXRECT
},
{
STATE_SAMPLER
(
7
),
{
0
,
NULL
},
WINE
D3D_GL_NORMALIZED_TEXRECT
},
{
STATE_SAMPLER
(
7
),
{
STATE_SAMPLER
(
7
),
sampler_texmatrix
},
WINED3D_GL_EXT_NONE
},
{
0
/* Terminate */
,
{
0
,
0
},
WINED3D_GL_EXT_NONE
},
};
...
...
dlls/wined3d/surface.c
View file @
c411b45d
...
...
@@ -3805,7 +3805,7 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_PrivateSetup(IWineD3DSurface *iface) {
This
->
texture_target
=
GL_TEXTURE_2D
;
/* Non-power2 support */
if
(
gl_info
->
supported
[
ARB_TEXTURE_NON_POWER_OF_TWO
]
||
gl_info
->
supported
[
WINE_NORMALIZED_TEXRECT
])
if
(
gl_info
->
supported
[
ARB_TEXTURE_NON_POWER_OF_TWO
]
||
gl_info
->
supported
[
WINE
D3D_GL
_NORMALIZED_TEXRECT
])
{
pow2Width
=
This
->
currentDesc
.
Width
;
pow2Height
=
This
->
currentDesc
.
Height
;
...
...
dlls/wined3d/texture.c
View file @
c411b45d
...
...
@@ -541,7 +541,7 @@ HRESULT texture_init(IWineD3DTextureImpl *texture, UINT width, UINT height, UINT
* Second also don't use ARB_TEXTURE_RECTANGLE in case the surface format is P8 and EXT_PALETTED_TEXTURE
* is used in combination with texture uploads (RTL_READTEX). The reason is that EXT_PALETTED_TEXTURE
* doesn't work in combination with ARB_TEXTURE_RECTANGLE. */
if
(
gl_info
->
supported
[
WINE_NORMALIZED_TEXRECT
]
&&
(
width
!=
pow2_width
||
height
!=
pow2_height
))
if
(
gl_info
->
supported
[
WINE
D3D_GL
_NORMALIZED_TEXRECT
]
&&
(
width
!=
pow2_width
||
height
!=
pow2_height
))
{
texture
->
baseTexture
.
pow2Matrix
[
0
]
=
1
.
0
f
;
texture
->
baseTexture
.
pow2Matrix
[
5
]
=
1
.
0
f
;
...
...
dlls/wined3d/wined3d_gl.h
View file @
c411b45d
...
...
@@ -1837,7 +1837,7 @@ typedef enum wined3d_gl_extension
WGL_ARB_PIXEL_FORMAT
,
WGL_WINE_PIXEL_FORMAT_PASSTHROUGH
,
/* Internally used */
WINE_NORMALIZED_TEXRECT
,
WINE
D3D_GL
_NORMALIZED_TEXRECT
,
WINED3D_GL_VERSION_2_0
,
WINED3D_GL_EXT_COUNT
,
...
...
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