Sweden-Number/dlls/ddraw
Stefan Dösinger 3cc253c557 wined3d: Enabling too many lights is silently ignored.
I'm resending this patch because my reply to Henri's concern came too late. 
Henri noted that I am enabling lights that do not exist. Existing tests show 
that if no light is assigned to the index, LightEnable creates a light with a 
set of default parameters, so the tests should be fine.

From 9ee4c61805b50886f79e87d744b52f27b7b00b4e Mon Sep 17 00:00:00 2001
From: Stefan Doesinger <stefan@codeweavers.com>
Date: Thu, 29 Nov 2007 13:22:47 +0100
Subject: [PATCH] WineD3D: Enabling too many lights is silently ignored

This patch adds tests for all d3d versions that show that Windows
pretends that enabling more lights than supported succeeds. D3D_OK is
returned, and the light is reported as enabled.

What is not tested in this patch is the rendering output of this
situation, thus the FIXME is still written.
2007-12-03 13:44:07 +01:00
..
tests wined3d: Enabling too many lights is silently ignored. 2007-12-03 13:44:07 +01:00
Makefile.in ddraw: Don't link against X libraries. 2007-06-26 17:44:36 +02:00
clipper.c ddraw: Hold the lock in IDirectDrawClipper methods. 2007-06-04 12:52:56 +02:00
ddcomimpl.h ddraw: Double buffered primary surfaces can only be created in EXLUSIVE mode. 2006-09-10 10:18:23 +02:00
ddraw.c ddraw: Downgrade the SetCooperativeLevel FIXME to a TRACE. 2007-10-10 11:59:33 +02:00
ddraw.spec ddraw: Rewrite most of ddraw using WineD3D. 2006-06-15 16:51:16 +02:00
ddraw_private.h ddraw: Cope with Init3D failures. 2007-10-10 11:58:37 +02:00
ddraw_thunks.c ddraw: More tests and fixes on surface attachments. 2007-05-09 12:07:46 +02:00
device.c wined3d: Add a wined3d private WINED3DSBT_RECORDED. 2007-08-15 09:36:20 +02:00
direct3d.c ddraw: Enumerate additional devices in IDirect3D7_EnumDevices. 2007-09-10 16:47:30 +02:00
executebuffer.c ddraw: Y coords are inversed. 2007-07-06 19:29:48 +02:00
gamma.c ddraw: Hold the lock in IDirectDrawGammaControl methods. 2007-06-04 12:53:01 +02:00
light.c ddraw: Hold the lock in IDirect3DLight methods. 2007-06-05 12:21:53 +02:00
main.c ddraw: Better match the PSDK types and fix the winapi_check warnings. 2007-08-08 15:32:03 +02:00
material.c ddraw: Hold the lock in IDirect3DMaterial methods. 2007-06-04 12:53:09 +02:00
palette.c ddraw: Hold the lock in IDirectDrawPalette methods. 2007-06-05 12:21:44 +02:00
parent.c ddraw: Exclude unused headers. 2007-05-01 11:42:24 +02:00
regsvr.c ddraw: Fix RegDeleteTreeA/W compile issues when building ddraw for Windows. 2007-10-01 14:17:09 +02:00
surface.c ddraw: Cope with Init3D failures. 2007-10-10 11:58:37 +02:00
surface_thunks.c ddraw: Z buffers can be attached to offscreen d3d devices. 2007-07-03 12:32:42 +02:00
texture.c ddraw: Hold the lock in IDirect3DTexture methods. 2007-06-05 12:22:03 +02:00
utils.c Assorted spelling fixes. 2007-05-29 13:47:18 +02:00
version.rc Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
vertexbuffer.c ddraw: Fix missing unlock on an error path. Found by Smatch. 2007-06-26 11:57:56 +02:00
viewport.c Assorted spelling fixes. 2007-07-31 21:37:50 +02:00