[6/10] WineD3D: Misc comment updates
Stefan Dösinger
stefan at codeweavers.com
Mon Feb 19 08:24:26 CST 2007
-------------- next part --------------
From a0a70e8736c2dd0a98cb89827001319d2447373a Mon Sep 17 00:00:00 2001
From: Stefan Doesinger <stefan at codeweavers.com>
Date: Sun, 18 Feb 2007 20:14:16 +0100
Subject: [PATCH] WineD3D: Misc comment updates
Removes implementation hint from SetStreamSourceFreq - We have an
implementation of that in drawprim now :-)
Update SetLight comment to reflect hashmap
---
dlls/wined3d/device.c | 14 ++------------
1 files changed, 2 insertions(+), 12 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 3e66075..333e79b 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -2021,16 +2021,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetStreamSource(IWineD3DDevice *iface,
return WINED3D_OK;
}
-/*Should be quite easy, just an extension of vertexdata
-ref...
-http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/directx9_c_Summer_04/directx/graphics/programmingguide/advancedtopics/DrawingMultipleInstances.asp
-
-The divider is a bit odd though
-
-VertexOffset = StartVertex / Divider * StreamStride +
- VertexIndex / Divider * StreamStride + StreamOffset
-
-*/
static HRESULT WINAPI IWineD3DDeviceImpl_SetStreamSourceFreq(IWineD3DDevice *iface, UINT StreamNumber, UINT Divider) {
IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *)iface;
UINT oldFlags = This->updateStateBlock->streamFlags[StreamNumber];
@@ -2150,8 +2140,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_MultiplyTransform(IWineD3DDevice *iface
*****/
/* Note lights are real special cases. Although the device caps state only eg. 8 are supported,
you can reference any indexes you want as long as that number max are enabled at any
- one point in time! Therefore since the indexes can be anything, we need a linked list of them.
- However, this causes stateblock problems. When capturing the state block, I duplicate the list,
+ one point in time! Therefore since the indexes can be anything, we need a hashmap of them.
+ However, this causes stateblock problems. When capturing the state block, I duplicate the hashmap,
but when recording, just build a chain pretty much of commands to be replayed. */
static HRESULT WINAPI IWineD3DDeviceImpl_SetLight(IWineD3DDevice *iface, DWORD Index, CONST WINED3DLIGHT* pLight) {
--
1.4.4.3
More information about the wine-patches
mailing list