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
5a00c805
Commit
5a00c805
authored
Aug 08, 2009
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Aug 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of two dead render target lock mode options.
parent
5b1992b4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
20 deletions
+4
-20
surface.c
dlls/wined3d/surface.c
+2
-5
texture.c
dlls/wined3d/texture.c
+2
-3
wined3d_main.c
dlls/wined3d/wined3d_main.c
+0
-10
wined3d_private.h
dlls/wined3d/wined3d_private.h
+0
-2
No files found.
dlls/wined3d/surface.c
View file @
5a00c805
...
...
@@ -1515,13 +1515,11 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_UnlockRect(IWineD3DSurface *iface) {
switch
(
wined3d_settings
.
rendertargetlock_mode
)
{
case
RTL_READTEX
:
case
RTL_TEXTEX
:
IWineD3DSurface_LoadLocation
(
iface
,
SFLAG_INTEXTURE
,
NULL
/* partial texture loading not supported yet */
);
/* drop through */
case
RTL_AUTO
:
case
RTL_READDRAW
:
case
RTL_TEXDRAW
:
IWineD3DSurface_LoadLocation
(
iface
,
SFLAG_INDRAWABLE
,
fullsurface
?
NULL
:
&
This
->
dirtyRect
);
break
;
}
...
...
@@ -4058,7 +4056,7 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_RealizePalette(IWineD3DSurface *iface)
CONVERT_TYPES
convert
;
/* Check if we are using a RTL mode which uses texturing for uploads */
BOOL
use_texture
=
(
wined3d_settings
.
rendertargetlock_mode
==
RTL_READTEX
||
wined3d_settings
.
rendertargetlock_mode
==
RTL_TEXTEX
);
BOOL
use_texture
=
(
wined3d_settings
.
rendertargetlock_mode
==
RTL_READTEX
);
/* Check if we have hardware palette conversion if we have convert is set to NO_CONVERSION */
d3dfmt_get_conv
(
This
,
TRUE
,
use_texture
,
&
format
,
&
internal
,
&
type
,
&
convert
,
&
bpp
,
FALSE
);
...
...
@@ -4165,8 +4163,7 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_PrivateSetup(IWineD3DSurface *iface) {
*/
if
(
This
->
Flags
&
SFLAG_NONPOW2
&&
GL_SUPPORT
(
ARB_TEXTURE_RECTANGLE
)
&&
!
((
This
->
resource
.
format_desc
->
format
==
WINED3DFMT_P8
)
&&
GL_SUPPORT
(
EXT_PALETTED_TEXTURE
)
&&
(
wined3d_settings
.
rendertargetlock_mode
==
RTL_READTEX
||
wined3d_settings
.
rendertargetlock_mode
==
RTL_TEXTEX
)))
&&
(
wined3d_settings
.
rendertargetlock_mode
==
RTL_READTEX
)))
{
This
->
texture_target
=
GL_TEXTURE_RECTANGLE_ARB
;
This
->
pow2Width
=
This
->
currentDesc
.
Width
;
...
...
dlls/wined3d/texture.c
View file @
5a00c805
...
...
@@ -199,7 +199,7 @@ HRESULT texture_init(IWineD3DTextureImpl *texture, UINT width, UINT height, UINT
/* Precalculated scaling for 'faked' non power of two texture coords.
* 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
/RTL_TEXTEX
). The reason is that 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_SUPPORT
(
WINE_NORMALIZED_TEXRECT
)
&&
(
width
!=
pow2_width
||
height
!=
pow2_height
))
{
...
...
@@ -213,8 +213,7 @@ HRESULT texture_init(IWineD3DTextureImpl *texture, UINT width, UINT height, UINT
}
else
if
(
GL_SUPPORT
(
ARB_TEXTURE_RECTANGLE
)
&&
(
width
!=
pow2_width
||
height
!=
pow2_height
)
&&
!
((
format_desc
->
format
==
WINED3DFMT_P8
)
&&
GL_SUPPORT
(
EXT_PALETTED_TEXTURE
)
&&
(
wined3d_settings
.
rendertargetlock_mode
==
RTL_READTEX
||
wined3d_settings
.
rendertargetlock_mode
==
RTL_TEXTEX
)))
&&
(
wined3d_settings
.
rendertargetlock_mode
==
RTL_READTEX
)))
{
if
((
width
!=
1
)
||
(
height
!=
1
))
texture
->
baseTexture
.
pow2Matrix_identity
=
FALSE
;
...
...
dlls/wined3d/wined3d_main.c
View file @
5a00c805
...
...
@@ -252,16 +252,6 @@ static BOOL wined3d_init(HINSTANCE hInstDLL)
TRACE
(
"Using glReadPixels for render target reading and textures for writing
\n
"
);
wined3d_settings
.
rendertargetlock_mode
=
RTL_READTEX
;
}
else
if
(
!
strcmp
(
buffer
,
"texdraw"
))
{
TRACE
(
"Using textures for render target reading and glDrawPixels for writing
\n
"
);
wined3d_settings
.
rendertargetlock_mode
=
RTL_TEXDRAW
;
}
else
if
(
!
strcmp
(
buffer
,
"textex"
))
{
TRACE
(
"Reading render targets via textures and writing via textures
\n
"
);
wined3d_settings
.
rendertargetlock_mode
=
RTL_TEXTEX
;
}
}
if
(
!
get_config_key_dword
(
hkey
,
appkey
,
"VideoPciDeviceID"
,
&
tmpvalue
)
)
{
...
...
dlls/wined3d/wined3d_private.h
View file @
5a00c805
...
...
@@ -270,8 +270,6 @@ static inline float float_24_to_32(DWORD in)
#define RTL_AUTO 0
#define RTL_READDRAW 1
#define RTL_READTEX 2
#define RTL_TEXDRAW 3
#define RTL_TEXTEX 4
#define PCI_VENDOR_NONE 0xffff
/* e.g. 0x8086 for Intel and 0x10de for Nvidia */
#define PCI_DEVICE_NONE 0xffff
/* e.g. 0x14f for a Geforce6200 */
...
...
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