wined3d-1DTextures: 0004 fix compiling-4

This commit is contained in:
gloriouseggroll 2018-02-19 15:35:50 -05:00
parent d01ff543f3
commit 45fbdfad6c

View File

@ -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;