wined3d: Enabling too many lights is silently ignored.
commit3cc253c557fb68e620ee4f5130a781e56f17d6bc
authorStefan Dösinger <stefan@codeweavers.com>
Thu, 29 Nov 2007 12:22:47 +0000 (29 13:22 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 3 Dec 2007 12:44:07 +0000 (3 13:44 +0100)
tree9fd04905e74341642d8de9df324057fde6850816
parent0f39b29da0d8c6ce56bae2222cd4da982df6537d
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.
dlls/d3d8/tests/device.c
dlls/d3d9/tests/device.c
dlls/ddraw/tests/d3d.c
dlls/wined3d/device.c
dlls/wined3d/wined3d_private.h