Added hack for WINED3DFMT_R24_UNORM_X8_TYPELESS format.

This commit is contained in:
Sebastian Lackner
2016-09-04 21:23:54 +02:00
parent e2e200361f
commit bf90df4eed
3 changed files with 31 additions and 2 deletions

View File

@@ -8027,7 +8027,7 @@ diff --git a/dlls/wined3d/texture.c b/dlls/wined3d/texture.c
diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
--- a/dlls/wined3d/utils.c
+++ b/dlls/wined3d/utils.c
@@ -4539,7 +4539,11 @@ void get_projection_matrix(const struct wined3d_context *context, const struct w
@@ -4543,7 +4543,11 @@ void get_projection_matrix(const struct wined3d_context *context, const struct w
float y_offset = context->render_offscreen
? (center_offset - (2.0f * y) - h) / h
: (center_offset - (2.0f * y) - h) / -h;
@@ -8039,7 +8039,7 @@ diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
state->render_states[WINED3D_RS_ZENABLE] : WINED3D_ZB_FALSE;
float z_scale = zenable ? 2.0f : 0.0f;
float z_offset = zenable ? -1.0f : 0.0f;
@@ -5336,7 +5340,11 @@ void gen_ffp_frag_op(const struct wined3d_context *context, const struct wined3d
@@ -5340,7 +5344,11 @@ void gen_ffp_frag_op(const struct wined3d_context *context, const struct wined3d
break;
}
}