Ričardas Barkauskas
bf7df85169
ddraw: Do not create implicit depth buffer.
2011-08-25 11:31:38 +02:00
Ričardas Barkauskas
abf8728e1f
ddraw: Don't allow setting palette on non root surfaces.
2011-08-22 17:15:48 +02:00
Ričardas Barkauskas
1a609ecab8
ddraw/tests: Properly release no longer used interfaces.
2011-08-22 17:15:41 +02:00
Frédéric Delanoy
760faf01a9
tests: Assorted spelling fixes.
2011-08-04 18:27:37 +02:00
Henri Verbeet
e55121773a
ddraw/tests: Add tests to show that resizing the window on mode changes is a property of DDSCL_EXCLUSIVE.
2011-07-22 12:57:19 +02:00
Henri Verbeet
84413298de
ddraw: Resize the window after setting the new display mode.
2011-07-22 12:57:18 +02:00
Henri Verbeet
04d541c26d
ddraw: Just use SetWindowPos() in ddraw_set_display_mode().
...
Instead of going through wined3d_device_restore_fullscreen_window() /
wined3d_device_setup_fullscreen_window(). The main point of those functions is
changing the window styles, but we don't actually need that here. More
importantly, we filter the messages generated by those functions in wined3d,
while tests show that messages generated by SetDisplayMode() /
RestoreDisplayMode() are visible to the application. Applications depend on
WM_SIZE in particular.
2011-07-19 14:05:56 +02:00
Ričardas Barkauskas
3b50ad82ad
ddraw: Fix SetRenderTarget behaviour on failure.
2011-06-28 11:57:50 -05:00
Andrew Nguyen
a90b698e0c
ddraw: Handle a callback cancellation attempt in d3d7_EnumDevices.
2011-06-01 16:09:58 +02:00
Andrew Nguyen
f2f529ae38
ddraw: Extend the lifetime of the EnumDevices strings beyond function scope.
2011-06-01 16:09:53 +02:00
Andrew Nguyen
cf6d56a43a
ddraw: Add a NULL callback pointer check in the EnumDevices implementations.
2011-05-31 18:32:59 +02:00
Andrew Nguyen
7cd97b2ed4
ddraw/tests: Remove a superfluous skip check.
2011-05-31 18:32:59 +02:00
Henri Verbeet
f147c1e928
ddraw: Don't touch the window during mode setting if we're not in exclusive mode.
2011-05-24 11:53:47 +02:00
Henri Verbeet
43aac32fd5
ddraw/tests: Add a test for mode settings calls with different coop levels.
2011-05-24 11:53:44 +02:00
Henri Verbeet
5e4145d0ff
ddraw: Skip redundant mode setting calls.
2011-05-11 14:56:48 +02:00
Henri Verbeet
87b45c3545
ddraw/tests: Add a small test for redundant mode setting calls.
2011-05-11 14:56:48 +02:00
Francois Gouget
d719e831ab
ddraw/tests: Add a '\n' to an ok() call.
2011-05-09 12:09:13 +02:00
Henri Verbeet
65272a4f81
ddraw/tests: Add a test for SetCooperativeLevel() window styles.
2011-05-03 14:38:06 +02:00
Henri Verbeet
0293e19928
ddraw/tests: Make sure the window is properly released by ddraw in test_wndproc().
2011-05-03 14:38:06 +02:00
Austin English
46f0538ae0
ddraw: Fix unused variable warnings (LLVM/Clang).
2011-02-07 10:13:52 -06:00
Greg Geldorp
1e7c80ba9a
ddraw/tests: Remove some outdated tests.
2011-01-14 18:26:20 +01:00
Henri Verbeet
7a354177b3
wined3d: Don't unregister a window unless the window proc is what we expect it to be.
...
In particular, if we'd unregister a window when the application replaced our
window proc, but still forwards to us, we'd create a loop when we register
the same window again later.
2010-11-10 12:19:24 +01:00
Henri Verbeet
6fcb33f59f
ddraw: Window proc replacement depends on DDSCL_EXCLUSIVE, not DDSCL_FULLSCREEN.
2010-11-10 12:19:04 +01:00
Henri Verbeet
7e3985e1fe
ddraw: Setup the device window in SetCooperativeLevel().
2010-11-08 13:30:54 +01:00
Henri Verbeet
feaf81f60d
wined3d: Use SetWindowPos() to make the focus window active.
2010-11-05 17:15:37 +01:00
Henri Verbeet
4c4a414596
ddraw/tests: Check for multiple expected messages in test_wndproc().
2010-11-04 12:12:33 +01:00
Ričardas Barkauskas
78e4a096a3
ddraw: Surfaces with DDSCAPS_3DDEVICE and DDSCAPS_ZBUFFER can't be render targets.
2010-10-25 15:31:12 +02:00
Ričardas Barkauskas
ff659522f6
ddraw: Fix DDSCAPS_3DDEVICE surfaces always setting DDSCAPS_VISIBLE.
2010-10-25 15:31:07 +02:00
Ričardas Barkauskas
c6bc9e01e3
ddraw/tests: Test if surface with DDSCAPS_ZBUFFER can be render target.
2010-10-25 15:30:51 +02:00
Oldřich Jedlička
bec3b7692d
ddraw: Allow creating back buffer for DirectX 1 interfaces.
2010-09-16 13:38:03 -05:00
Oldřich Jedlička
7085a3f85b
ddraw/tests: New attachment tests for 3D back buffers.
2010-09-14 13:34:21 -05:00
Oldřich Jedlička
51332b7a03
ddraw/tests: New tests for CreateSurface for 3D DDSCAPS_BACKBUFFER.
2010-09-03 16:02:31 +02:00
Henri Verbeet
83ff5b5041
ddraw: Handle D3DRENDERSTATE_TEXTUREHANDLE and D3DRENDERSTATE_TEXTUREMAPBLEND in d3d7.
2010-09-03 11:05:35 +02:00
Andrew Nguyen
8b1c1edb6b
ddraw/tests: Test IDirect3D::FindDevice HAL enumeration.
2010-07-19 14:48:54 +02:00
Andrew Nguyen
14744c44b1
ddraw: Don't permit the enumeration of the Direct3D reference device in IDirect3D1::FindDevice.
2010-07-19 14:41:33 +02:00
Andrew Nguyen
bdc29f83bc
ddraw/tests: Add an observation regarding device color model criteria for IDirect3D3::FindDevice.
2010-06-22 11:47:39 +02:00
Andrew Nguyen
eb9227015a
ddraw: Allow the ddraw RGB device to be enumerated in IDirect3D3::FindDevice.
...
Partially based on a patch by David Adam.
2010-06-22 11:47:24 +02:00
Andrew Nguyen
10a076ad8d
ddraw: Validate structure pointers and sizes in IDirect3D3::FindDevice.
2010-06-22 11:24:59 +02:00
Henri Verbeet
914c8cb8ea
ddraw: Acquire/release the focus window from the correct location.
2010-03-18 10:24:15 +01:00
Christian Costa
2e48bdd144
ddraw/tests: Fix typos.
2010-03-01 12:05:53 +01:00
Christian Costa
e0213af9ab
ddraw: Enable GetViewport to retreive data set by SetViewport2 and vice-versa + tests.
2010-02-15 12:51:23 +01:00
Stefan Dösinger
bb035638d0
d3d: Make sure vertexbuffer lock doesn't return a NULL pointer.
2010-02-09 11:33:53 +01:00
Stefan Dösinger
f0266ee519
ddraw: Test invalid buffer lock parameters.
2010-01-29 14:59:02 +01:00
Henri Verbeet
e79a6b20d2
ddraw/tests: Add tests for ddraw window proc handling.
2009-12-17 12:43:05 +01:00
Paul Vriens
e1bf800ba5
ddraw/tests: Fix a test failure on Win9x/WinMe.
2009-10-21 16:05:57 +02:00
Henri Verbeet
c45609f15c
ddraw/tests: Check some more return values (LLVM/Clang).
2009-10-16 13:37:00 +02:00
Andrew Nguyen
611fae610c
ddraw/tests: Remove a superfluous return statement.
2009-10-09 11:40:07 +02:00
Stefan Dösinger
9e068a33b3
wined3d: SetRenderTarget doesn't change the viewport in d3d7.
2009-10-02 15:06:56 +02:00
Francois Gouget
e168876d8f
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2009-08-31 12:41:21 +02:00
Alexandre Julliard
5622f74486
ddraw/tests: Fix a few tests that fail on Win64.
2009-07-10 20:52:41 +02:00
Christian Costa
06d2b30903
ddraw/tests: Add tests for refcount handling of light with viewport.
2009-04-21 16:30:36 +02:00
David Adam
22bfd1396c
ddraw: Implement ComputeSphereVisibility.
2009-02-26 15:13:25 +01:00
Francois Gouget
77a3cffb1b
ddraw/tests: Use win_skip() to skip over unimplemented functionality.
2009-02-24 16:57:26 +01:00
Vincent Pelletier
f879176b99
ddraw: Use ddraw_from_d3d7 to make a (IDirectDrawImpl *) from a (IDirect3D7 *).
2009-02-10 12:31:50 +01:00
Alasdair Sinclair
8a46be6cee
ddraw/tests: Fix missing void in empty parameter list.
2009-01-28 12:10:49 +01:00
David Adam
62b8b9a8fd
ddraw/tests: Add a few tests for ComputeShereVisibility.
2009-01-26 14:30:17 +01:00
Michael Stefaniuc
91bb8dc043
ddraw/tests: Remove superfluous casts.
2009-01-04 13:34:13 +01:00
Michael Stefaniuc
566a133a82
ddraw/tests: Simplify a pointer increment.
2009-01-04 13:34:05 +01:00
Alexandre Julliard
e1ced22db1
ddraw: Convert source files to utf-8.
2008-10-18 19:19:45 +02:00
Michael Stefaniuc
ff5a860c0c
ddraw/tests: Use FAILED instead of !SUCCEEDED.
2008-10-08 13:42:11 +02:00
David Adam
bb67a925d6
ddraw: Only ddraw checks wether one can give a null pointer to SetMaterial.
2008-08-22 11:32:09 +02:00
Alexander Dorofeyev
e718eae9e2
ddraw/tests: Skip cubemap tests when cubemap isn't supported.
2008-08-21 13:35:12 +02:00
Alexandre Julliard
79c64acc7b
tests: Don't depend on the static uuid libraries in the tests.
...
This avoids trouble with the broken MingW libraries when
cross-compiling the tests.
2008-07-08 17:51:45 +02:00
James Hawkins
8830dbcca8
ddraw: Fix a failing test for broken drivers.
2008-07-02 12:04:56 +02:00
James Hawkins
5dcec4de49
ddraw: Reset the viewport data before each test.
2008-06-18 13:51:46 +02:00
Jens Albretsen
a2b645128f
ddraw: Test for IDirect3DTexture_Load of Texture into itself.
2008-05-28 19:31:35 +02:00
Francois Gouget
8019c55cc6
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2008-05-21 11:36:39 +02:00
Alexander Dorofeyev
c4d75213ab
ddraw/tests: Add tests for IDirect3DDevice7_Load.
2008-05-06 11:26:24 +02:00
Alexander Dorofeyev
d5db7615a2
ddraw/tests: Add test for deprecated render states in d3d7.
2008-05-05 19:54:48 +02:00
Austin English
825baa23a2
ddraw: Spelling fixes.
2008-04-03 11:39:45 +02:00
Stefan Dösinger
4066c2e2fd
ddraw: Do not fail if D3D is not available.
2008-04-01 20:31:51 +02:00
Francois Gouget
eab196b35a
ddraw: Remove trailing spaces in ok() calls.
2008-03-27 11:05:40 +01:00
Kolbjørn Fredheim
a40185f12f
ddraw: Don't clear the return value anymore, we fill the fields anyway, also a test for the behaviour.
2008-03-25 12:50:33 +01:00
Alexander Dorofeyev
eddbdbef47
ddraw/tests: Test executebuffer triangle instruction with zero count.
2008-03-24 20:40:18 +01:00
Francois Gouget
9381f22653
ddraw/tests: Don't use 0xaa to avoid any confusion when running with +heap.
2008-03-05 12:18:36 +01:00
Detlef Riekenberg
1eb52667ac
ddraw/tests: Avoid endless loop, when T&L is not supported.
2008-02-20 12:06:28 +01:00
Alexander Dorofeyev
74c380cb7b
ddraw/tests: Add test for palette handling in IDirect3DTexture_Load.
2008-02-19 13:39:24 +01:00
Alexander Dorofeyev
cfa40a22c9
ddraw/tests: Split d3d1 initialization and destruction into separate functions.
...
Slight rewrite to make creating additional D3D1 tests easier.
2008-02-19 13:39:23 +01:00
Alexander Dorofeyev
ddd0ec1670
ddraw/tests: Add test for branch instruction with non-zero offset.
2008-02-19 12:06:50 +01:00
Reece H. Dunn
8354995482
ddraw: Spelling fixes in the d3d test output.
2008-02-06 13:49:45 +01:00
Francois Gouget
d0794c4aeb
Assorted spelling fixes.
2008-01-23 21:16:22 +01:00
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
Stefan Dösinger
f9dba29477
ddraw: Be less picky about float precision.
2007-11-07 12:08:00 +01:00
Stefan Dösinger
7a445747ea
ddraw: Do not fail on surface creation errors, skip instead.
2007-10-10 11:59:26 +02:00
David Hedberg
019cc506a8
ddraw: Enumerate additional devices in IDirect3D7_EnumDevices.
2007-09-10 16:47:30 +02:00
Francois Gouget
5266e57975
Assorted spelling fixes.
2007-07-31 21:37:50 +02:00
Francois Gouget
382329c103
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2007-07-09 11:45:53 +02:00
Paul Vriens
c92026739e
ddraw/tests: Use skip instead of trace.
2007-07-06 18:15:26 +02:00
Francois Gouget
090fd6d9d2
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2007-07-05 19:54:58 +02:00
Stefan Dösinger
e4bf7ab578
ddraw: Implement IDirect3DViewport3::TransformVertices.
2007-07-05 19:52:27 +02:00
Stefan Dösinger
5fa4de27bc
ddraw: D3DOP_BRANCHFORWARD includes the current instruction size.
...
Native D3DRM puts a branchforward with offset 0 at the beginning of each
execute buffer. With the old code this used to get stuck in an endless
loop. This patch adds a test that shows that such a branchforward
terminates properly.
2007-07-05 19:52:01 +02:00
Stefan Dösinger
4f8eb6a32e
wined3d: Clamp material power to 128.0.
2007-06-25 20:03:26 +02:00
Francois Gouget
73032be74a
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2007-06-25 13:25:39 +02:00
Stefan Dösinger
fb269f9210
wined3d: Depthfill blits are allowed between BeginScene and Endscene.
2007-06-22 13:42:51 +02:00
Francois Gouget
77440b098f
ddraw/tests: Fix compilation with Visual C++ 2005.
2007-05-29 13:44:35 +02:00
Marcus Meissner
b7ac570f39
ddraw/tests: Check for failing to create surfaces.
2007-05-14 15:41:21 +02:00
Stefan Dösinger
d9fef10b71
ddraw: Some caps fixes.
...
Cards at DirectX7 times did not support non power of 2 textures, and
some games check the capatiblity flags incorrectly. Rollcage expects the
D3DPTEXTURECAPS_POW2 (limitation) flag set and fails with the reference
rasterizer which support NP2 textures and doesn't have the cap set.
2007-05-10 11:40:01 +02:00
Francois Gouget
d9e8a0f63e
Remove unneeded checks on the GetModuleHandle() return value for cases where we are linked with the dll.
2007-03-28 12:36:13 +02:00
Francois Gouget
dbbef46e5a
ddraw/tests: There is no unnamed union in D3DLIGHT7.
2007-02-26 17:34:04 +01:00
Stefan Dösinger
76b7cac7af
wined3d: Light parameter fixes.
2007-02-21 10:55:31 +01:00