Sweden-Number/dlls/wined3d
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
..
Makefile.in wined3d: Start of some surface cleanup. 2007-09-18 09:34:08 +02:00
arb_program_shader.c wined3d: Make the code aware of GL_ARB_texture_rectangle. 2007-11-29 13:36:37 +01:00
baseshader.c wined3d: Make the code aware of GL_ARB_texture_rectangle. 2007-11-29 13:36:37 +01:00
basetexture.c wined3d: Make the code aware of GL_ARB_texture_rectangle. 2007-11-29 13:36:37 +01:00
clipper.c
context.c wined3d: Disable GL_TEXTURE_2D in the standard blit setup. 2007-11-29 13:35:53 +01:00
cubetexture.c wined3d: Non power of two texture fixes. 2007-11-14 11:59:21 +01:00
device.c wined3d: Enabling too many lights is silently ignored. 2007-12-03 13:44:07 +01:00
directx.c wined3d: Fix handling of a special case in IWineD3DImpl_FillGLCaps() and adjust type of loop variable. 2007-12-03 13:17:54 +01:00
drawprim.c wined3d: Depth stencil fixes. 2007-11-14 11:58:36 +01:00
glsl_shader.c wined3d: mov to a0.x does a floor(), not a round to nearest. 2007-12-03 13:43:54 +01:00
indexbuffer.c wined3d: Don't call ActivateContext between ENTER_GL/LEAVE_GL. 2007-08-07 12:36:32 +02:00
palette.c wined3d: Use standard wine lists for the resource list. 2007-11-20 13:10:46 +01:00
pixelshader.c wined3d: Make the code aware of GL_ARB_texture_rectangle. 2007-11-29 13:36:37 +01:00
query.c wined3d: Fake occlusion queries if the wrong context is active. 2007-08-23 13:34:52 +02:00
resource.c wined3d: Use standard wine lists for the resource list. 2007-11-20 13:10:46 +01:00
state.c wined3d: Make the code aware of GL_ARB_texture_rectangle. 2007-11-29 13:36:37 +01:00
stateblock.c wined3d: Depth stencil fixes. 2007-11-14 11:58:36 +01:00
surface.c wined3d: Remove the X channel fixup in render target unlocking. 2007-11-30 14:01:34 +01:00
surface_base.c wined3d: Do not call PreLoad in surface_download_data. 2007-11-16 13:23:02 +01:00
surface_gdi.c wined3d: Do not call PreLoad in surface_download_data. 2007-11-16 13:23:02 +01:00
swapchain.c wined3d: Destroy GL contexts before changing the screen resolution. 2007-11-16 13:23:15 +01:00
texture.c wined3d: Activate GL_ARB_texture_rectangle. 2007-11-29 13:36:55 +01:00
utils.c wined3d: Make the code aware of GL_ARB_texture_rectangle. 2007-11-29 13:36:37 +01:00
vertexbuffer.c wined3d: Catch transformed position data that appears at offset 0. 2007-08-17 12:01:38 +02:00
vertexdeclaration.c wined3d: Fix a sign mistake in the code creating the sorted attrib. 2007-11-28 13:40:29 +01:00
vertexshader.c wined3d: Fix a sign mistake in the code creating the sorted attrib. 2007-11-28 13:40:29 +01:00
volume.c wined3d: Refuse to create volumes and volume textures if not supported. 2007-11-07 12:07:29 +01:00
volumetexture.c wined3d: Don't call ActivateContext between ENTER_GL/LEAVE_GL. 2007-08-07 12:36:32 +02:00
wined3d.spec
wined3d_main.c wined3d: Default to GLSL. This is safe because we now have proper ps2.0/vs2.0 detection. 2007-10-29 13:04:58 +01:00
wined3d_private.h wined3d: Enabling too many lights is silently ignored. 2007-12-03 13:44:07 +01:00
wined3d_private_types.h wined3d: Implement texldb. 2007-09-11 13:47:58 +02:00