[2/15] WineD3D: Remove the invymat from drawprim.c
Stefan Dösinger
stefan at codeweavers.com
Wed Jan 10 04:25:04 CST 2007
Invymat is only used in state.c, which has its own copy. I just see that this
patch adds an extra whitespace, please ignore it, the next patch will remove
that function alltogether.
-------------- next part --------------
From 1fad80fd57238c662611d5c1294ff56fccb32cf7 Mon Sep 17 00:00:00 2001
From: Stefan Doesinger <stefan at codeweavers.com>
Date: Sat, 6 Jan 2007 20:10:37 +0100
Subject: [PATCH] WineD3D: remove invymat from drawprim.c
---
dlls/wined3d/drawprim.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/dlls/wined3d/drawprim.c b/dlls/wined3d/drawprim.c
index d210b85..2e4a694 100644
--- a/dlls/wined3d/drawprim.c
+++ b/dlls/wined3d/drawprim.c
@@ -93,6 +93,7 @@ static DWORD primitiveToGl(WINED3DPRIMITIVETYPE PrimitiveType,
/* Ensure the appropriate material states are set up - only change
state if really required */
static void init_materials(IWineD3DDevice *iface, BOOL isDiffuseSupplied) {
+
IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *)iface;
if (This->tracking_color == NEEDS_TRACKING && isDiffuseSupplied) {
@@ -120,12 +121,6 @@ static void init_materials(IWineD3DDevice *iface, BOOL isDiffuseSupplied) {
}
}
-static const GLfloat invymat[16] = {
- 1.0f, 0.0f, 0.0f, 0.0f,
- 0.0f, -1.0f, 0.0f, 0.0f,
- 0.0f, 0.0f, 1.0f, 0.0f,
- 0.0f, 0.0f, 0.0f, 1.0f};
-
static BOOL fixed_get_input(
BYTE usage, BYTE usage_idx,
unsigned int* regnum) {
--
1.4.4.3
More information about the wine-patches
mailing list