wined3d: Make RTL_READTEX the default rendertarget locking method.

For most cards this should make more sense than RTL_READDRAW, even if e.g.
surface_upload_data() has some room for improvement.
oldstable
Henri Verbeet 2009-08-14 09:23:25 +02:00 committed by Alexandre Julliard
parent 779ad6b9f1
commit ecd2dc7603
3 changed files with 1 additions and 3 deletions

View File

@ -1518,7 +1518,6 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_UnlockRect(IWineD3DSurface *iface) {
IWineD3DSurface_LoadLocation(iface, SFLAG_INTEXTURE, NULL /* partial texture loading not supported yet */);
/* drop through */
case RTL_AUTO:
case RTL_READDRAW:
IWineD3DSurface_LoadLocation(iface, SFLAG_INDRAWABLE, fullsurface ? NULL : &This->dirtyRect);
break;

View File

@ -41,7 +41,7 @@ wined3d_settings_t wined3d_settings =
PS_HW, /* Hardware by default */
TRUE, /* Use of GLSL enabled by default */
ORM_FBO, /* Use FBOs to do offscreen rendering */
RTL_AUTO, /* Automatically determine best locking method */
RTL_READTEX, /* Default render target locking method */
PCI_VENDOR_NONE,/* PCI Vendor ID */
PCI_DEVICE_NONE,/* PCI Device ID */
0, /* The default of memory is set in FillGLCaps */

View File

@ -267,7 +267,6 @@ static inline float float_24_to_32(DWORD in)
#define SHADER_NONE 4
#define RTL_DISABLE -1
#define RTL_AUTO 0
#define RTL_READDRAW 1
#define RTL_READTEX 2