mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-01-28 22:04:43 -08:00
wined3d-1DTextures: 0004 fix compiling-4
This commit is contained in:
parent
d01ff543f3
commit
45fbdfad6c
@ -107,7 +107,7 @@ index 2a172ee..f81d7cf 100644
|
||||
+ if ((desc->usage & WINED3DUSAGE_DYNAMIC && (desc->access == WINED3D_RESOURCE_ACCESS_GPU | WINED3D_RESOURCE_ACCESS_CPU | WINED3D_RESOURCE_ACCESS_MAP))
|
||||
+ || desc->usage & WINED3DUSAGE_SCRATCH)
|
||||
+ {
|
||||
+ WARN("Attempted to create a DYNAMIC texture in pool %s.\n", debug_d3dpool(desc->pool));
|
||||
+ WARN("Attempted to create a DYNAMIC texture in pool %s.\n", debug_d3dpool(desc->access));
|
||||
+ return WINED3DERR_INVALIDCALL;
|
||||
+ }
|
||||
+
|
||||
@ -127,7 +127,7 @@ index 2a172ee..f81d7cf 100644
|
||||
+
|
||||
+ if (desc->usage & WINED3DUSAGE_QUERY_GENMIPMAP)
|
||||
+ {
|
||||
+ if (!gl_info->supported[SGIS_GENERATE_MIPMAP])
|
||||
+ if (!mipmap_gen_supported)
|
||||
+ {
|
||||
+ WARN("No mipmap generation support, returning WINED3DERR_INVALIDCALL.\n");
|
||||
+ return WINED3DERR_INVALIDCALL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user