Module: wine
Branch: master
Commit: 762e227994b4bcd71a9f230efcf89e92dea40b8f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=762e227994b4bcd71a9f230ef…
Author: Stefan Dösinger <stefan(a)codeweavers.com>
Date: Fri Feb 16 19:15:15 2007 +0100
wined3d: Only scream about unsupported vertex blending when it is used.
---
dlls/wined3d/state.c | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
index 16fddf7..257757f 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -2396,8 +2396,10 @@ static void loadVertexData(IWineD3DStateBlockImpl *stateblock, WineDirect3DVerte
#endif
} else {
- /* TODO: support blends in fixupVertices */
- FIXME("unsupported blending in openGl\n");
+ /* TODO: support blends in drawStridedSlow
+ * No need to write a FIXME here, this is done after the general vertex decl decoding
+ */
+ WARN("unsupported blending in openGl\n");
}
} else {
if (GL_SUPPORT(ARB_VERTEX_BLEND)) {
@@ -2785,8 +2787,11 @@ static inline void handleStreams(IWineD3DStateBlockImpl *stateblock, BOOL useVer
/* Generate some fixme's if unsupported functionality is being used */
#define BUFFER_OR_DATA(_attribute) dataLocations->u.s._attribute.lpData
/* TODO: Either support missing functionality in fixupVertices or by creating a shader to replace the pipeline. */
- if (!useVertexShaderFunction && (BUFFER_OR_DATA(blendMatrixIndices) || BUFFER_OR_DATA(blendWeights))) {
- FIXME("Blending data is only valid with vertex shaders %p %p\n",dataLocations->u.s.blendWeights.lpData,dataLocations->u.s.blendWeights.lpData);
+ if (!useVertexShaderFunction &&
+ stateblock->renderState[WINED3DRS_VERTEXBLEND] &&
+ (BUFFER_OR_DATA(blendMatrixIndices) || BUFFER_OR_DATA(blendWeights))) {
+ FIXME("Vertex Blending is not implemented yet %p %p\n",dataLocations->u.s.blendWeights.lpData,dataLocations->u.s.blendWeights.lpData);
+ /* TODO: Implement it using GL_ARB_vertex_blend or software emulation in drawStridedSlow */
}
if (!useVertexShaderFunction && (BUFFER_OR_DATA(position2) || BUFFER_OR_DATA(normal2))) {
FIXME("Tweening is only valid with vertex shaders\n");
Module: wine
Branch: master
Commit: 06f2829b921f7f18aa66ec880f86b95d49c4bf3d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=06f2829b921f7f18aa66ec880…
Author: Stefan Dösinger <stefan(a)codeweavers.com>
Date: Fri Feb 16 19:14:46 2007 +0100
wined3d: Pretend to support event queries.
---
dlls/wined3d/device.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 3ad864e..30771b0 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -1088,10 +1088,18 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateQuery(IWineD3DDevice *iface, WINE
else
WARN("Unsupported in local OpenGL implementation: ARB_OCCLUSION_QUERY/NV_OCCLUSION_QUERY\n");
break;
+
+ case WINED3DQUERYTYPE_EVENT:
+ /* Half-Life 2 needs this query. It does not render the main menu correctly otherwise
+ * Pretend to support it, faking this query does not do much harm except potentially lowering performance
+ */
+ FIXME("(%p) Event query: Unimplemented, but pretending to be supported\n", This);
+ hr = WINED3D_OK;
+ break;
+
case WINED3DQUERYTYPE_VCACHE:
case WINED3DQUERYTYPE_RESOURCEMANAGER:
case WINED3DQUERYTYPE_VERTEXSTATS:
- case WINED3DQUERYTYPE_EVENT:
case WINED3DQUERYTYPE_TIMESTAMP:
case WINED3DQUERYTYPE_TIMESTAMPDISJOINT:
case WINED3DQUERYTYPE_TIMESTAMPFREQ: