Commit Graph

485 Commits

Author SHA1 Message Date
Aaryaman Vasishta 460af458fd d3drm: Implement Add/Delete destroy callbacks for IDirect3DRMTexture*.
Signed-off-by: Aaryaman Vasishta <jem456.vasishta@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-19 21:25:42 +09:00
Aaryaman Vasishta e62475b0f1 d3drm/tests: Add tests for IDirect3DRMObject::Add/DeleteDestroyCallback.
Signed-off-by: Aaryaman Vasishta <jem456.vasishta@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-12 22:22:35 +09:00
Aaryaman Vasishta 0e6578d16b d3drm/tests: Add tests for IDirect3DRM*::CreateObject.
Signed-off-by: Aaryaman Vasishta <jem456.vasishta@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-12 22:22:31 +09:00
Bernhard Übelacker 82f59928d4 d3drm/tests: Release two retrieved interfaces to allow proper cleanup.
Signed-off-by: Bernhard Übelacker <bernhardu@vr-web.de>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-31 19:48:55 +09:00
Aaryaman Vasishta b05b96a0e2 d3drm: Move struct d3drm_texture to header for global access.
Signed-off-by: Aaryaman Vasishta <jem456.vasishta@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-22 23:51:30 +09:00
Henri Verbeet d868f85ee8 d3drm/tests: Properly initialise context.obj in test_Viewport().
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-22 12:19:45 +09:00
Michael Stefaniuc 62277fb777 d3drm: Use debugstr_a to print a string that can be NULL.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-14 22:24:50 +09:00
Nikolay Sivov d5d1a288e9 d3drm: Remove first found callback, not all of them.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-04 20:54:42 +09:00
Nikolay Sivov 45743b4d9f d3drm: Implement AddDestroyCallback/DeleteDestroyCallback for a viewport.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-03 22:29:01 +09:00
Nikolay Sivov b54afbc3a1 d3drm: Support IDirect3DRMObject in viewport QI.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-03 21:36:03 +09:00
Nikolay Sivov 7cf81baca4 d3drm: Implement SetAppData/GetAppData for a viewport.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-02 23:30:27 +09:00
Aaryaman Vasishta 858ea7a76e d3drm/tests: Add QueryInterface tests for IDirect3DRMTexture*.
Signed-off-by: Aaryaman Vasishta <jem456.vasishta@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-22 01:26:16 +09:00
Aaryaman Vasishta 47913f1c1c d3drm: Fix QueryInterface for IDirect3DRMTexture*.
Signed-off-by: Aaryaman Vasishta <jem456.vasishta@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-22 01:26:16 +09:00
Aaryaman Vasishta 889176b9d2 d3drm/tests: Add texture loading tests.
Signed-off-by: Aaryaman Vasishta <jem456.vasishta@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-17 15:39:57 +09:00
Bernhard Übelacker 669a49e1a2 d3drm/tests: Add missing DestroyWindow.
Signed-off-by: Bernhard Übelacker <bernhardu@vr-web.de>
Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-16 21:18:25 +09:00
Nikolay Sivov 175e68fe05 d3drm: Avoid HRESULT codes for BOOL retval methods (PVS-Studio).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-13 22:20:30 +09:00
Nikolay Sivov f6689b6ce2 d3drm: Avoid HRESULT codes for BOOL retval methods (PVS-Studio).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-13 22:19:18 +09:00
Aaryaman Vasishta 9eb5361d5a d3drm: Add stubs for IDirect3DRMTexture methods. 2015-08-25 21:09:36 +09:00
Aaryaman Vasishta a883c6207d d3drm: Thunk relevant texture methods from version 2->3. 2015-08-25 21:09:34 +09:00
Aaryaman Vasishta 895e4a1f66 d3drm: Thunk IDirect3DRMTexture2::QueryInterface to version 3. 2015-08-25 21:09:30 +09:00
Aaryaman Vasishta ed411d9701 d3drm: Thunk IDirect3DRMTexture2::Release to version 3. 2015-08-25 21:09:26 +09:00
Aaryaman Vasishta 0c06bb7a81 d3drm: Thunk IDirect3DRMTexture2::AddRef to version 3. 2015-08-25 21:09:23 +09:00
Aaryaman Vasishta 48891483f5 d3drm/tests: Add QueryInterface tests for IDirect3DRMDevice*. 2015-08-21 21:51:15 +09:00
Aaryaman Vasishta a9bde7f85b d3drm: Fix IDirect3DRMDevice3_QueryInterface returning incorrect HRESULT on unsupported interfaces. 2015-08-21 21:51:10 +09:00
Aaryaman Vasishta d8329ecfa8 d3drm: Add IDirect3DRMObject to be queried from IDirect3DRMDevice*. 2015-08-21 21:51:02 +09:00
Aaryaman Vasishta c453cb7023 d3drm: GetDirect3DDevice2 returns D3DRM_OK when IDirect3DDevice2 is not available. 2015-08-21 21:50:55 +09:00
Aaryaman Vasishta ed1d4f86c3 d3drm: Implement IDirect3DRM{2-3}::CreateDeviceFromD3D. 2015-08-21 21:50:43 +09:00
Aaryaman Vasishta 9603125efc d3drm: Implement IDirect3DRM::CreateDeviceFromD3D. 2015-08-21 21:50:37 +09:00
Aaryaman Vasishta 27f7174d71 d3drm: Implement IDirect3DRM{2-3}::CreateDeviceFromSurface. 2015-08-18 14:40:56 +09:00
Aaryaman Vasishta 35b17f50f1 d3drm: Implement IDirect3DRM::CreateDeviceFromSurface. 2015-08-18 14:40:54 +09:00
Aaryaman Vasishta a5d09b6bd7 d3drm: Implement IDirect3DRMDevice{2-3}::GetDirect3DDevice2. 2015-08-18 14:40:50 +09:00
Aaryaman Vasishta 27cc84d143 d3drm: Implement IDirect3DRM{2-3}::CreateDeviceFromClipper. 2015-08-18 14:40:46 +09:00
Aaryaman Vasishta 0041c56004 d3drm: Implement IDirect3DRMDevice*::GetDirect3DDevice. 2015-08-18 14:40:43 +09:00
Aaryaman Vasishta 1075d71135 d3drm: Implement IDirect3DRM::CreateDeviceFromClipper. 2015-08-18 14:40:40 +09:00
Aaryaman Vasishta b6f197c7a8 d3drm: Add helper for destroying device. 2015-08-18 14:40:30 +09:00
Aaryaman Vasishta f421e78bc5 d3drm: Change signature of d3drm_device_create. 2015-08-18 14:40:25 +09:00
Francois Gouget f8a7d6ed74 Assorted spelling fixes. 2015-08-07 23:50:48 +09:00
Francois Gouget 7e1e3a4d6d d3drm: Fix a trailing '\n' in a TRACE(). 2015-08-07 23:44:34 +09:00
Aaryaman Vasishta 59e41ab912 d3drm/tests: Add version specific tests for CreateDeviceFrom* methods. 2015-07-30 23:50:43 +02:00
Aaryaman Vasishta e1e614d180 d3drm: Add stubs for IDirect3DRMDevice methods. 2015-07-22 17:41:36 +02:00
Aaryaman Vasishta d06bc848f5 d3drm: Thunk relevant IDirect3DRMDevice2 stubs to version 3. 2015-07-22 17:41:33 +02:00
Aaryaman Vasishta 9939ac8fe0 d3drm/tests: Fix leaks while creating device in tests (Valgrind). 2015-07-17 17:03:22 +09:00
Aaryaman Vasishta 8184f5f68f d3drm: Move QueryInterface from device2->device3. 2015-07-13 22:08:18 +09:00
Aaryaman Vasishta 0339e57f32 d3drm: Move Release from device2->device3. 2015-07-13 22:07:07 +09:00
Aaryaman Vasishta ee6004ce0c d3drm: Move AddRef from device2->device3. 2015-07-13 22:06:59 +09:00
Alistair Leslie-Hughes 3981205c56 d3drm: Add DllCanUnloadNow, DllGetClassObject stubs. 2015-07-07 20:31:53 +09:00
Aaryaman Vasishta c023558b39 d3drm/tests: Add test for IDirect3DRM*::CreateDeviceFromD3D. 2015-07-06 18:42:45 +09:00
Aaryaman Vasishta 65b07a6550 d3drm/tests: Add test for IDirect3DRM*::CreateDeviceFromSurface. 2015-07-06 18:42:41 +09:00
Aaryaman Vasishta 388da78edc d3drm: Fix function signature for IDirect3DRM3::CreateDeviceFromSurface. 2015-07-02 13:48:48 +09:00
Aaryaman Vasishta c20e016eb2 d3drm/tests: Add test for IDirect3DRM*::CreateDeviceFromClipper. 2015-06-30 20:52:23 +09:00
Henri Verbeet e2e1ac2bf6 d3drm/tests: Release the material after a GetGroupMaterial() call in test_MeshBuilder() (Valgrind). 2015-05-04 21:19:00 +09:00
Henri Verbeet e723d2a079 d3drm: Also validate face indices against the vertex count in load_mesh_data() (Valgrind). 2015-05-04 21:18:56 +09:00
Aaryaman Vasishta 33160f5221 d3drm/tests: Remove TODO's from test_qi and TODO field from test tables. 2015-05-04 20:10:40 +09:00
Aaryaman Vasishta 844ce49717 d3drm: Fix refcounting for IDirect3DRM{1-3}. 2015-05-04 20:10:30 +09:00
Henri Verbeet 23f0e97071 d3drm: Release the child object after we're done with it in load_mesh_data() (Valgrind). 2015-05-01 15:17:24 +09:00
Henri Verbeet 90239052ab d3drm: Release the child object after we're done with it in load_data() (Valgrind). 2015-05-01 15:17:21 +09:00
Aaryaman Vasishta dbee90a728 d3drm: Move Release from frame2->frame3. 2015-04-30 16:50:09 +09:00
Aaryaman Vasishta 1e3737f152 d3drm: Move AddRef from frame2->frame3. 2015-04-30 16:50:04 +09:00
Aaryaman Vasishta b8b7a72f26 d3drm: Move QueryInterface from frame2->frame3. 2015-04-30 16:49:58 +09:00
Aaryaman Vasishta 223f367bee d3drm/tests: Add QueryInterface tests for IDirect3DRMFrame{1-3}. 2015-04-17 17:34:27 +09:00
Aaryaman Vasishta 5bbbf0aeb4 d3drm/tests: Make get_refcount return ULONG instead of int. 2015-04-17 17:34:24 +09:00
Aaryaman Vasishta 1b1d77268f d3drm: Add more interfaces to be queried from IDirect3DRMFrame2::QueryInterface. 2015-04-10 17:13:17 +09:00
Aaryaman Vasishta 415b7c1fec d3drm: Fix IDirect3DRMFrame2::QueryInterface returning incorrect HRESULT. 2015-04-10 17:13:13 +09:00
Marcus Meissner 369cf7118b d3drm: Avoid potential double free (Coverity). 2015-04-07 15:16:46 +09:00
Aaryaman Vasishta bb83e30635 d3drm: Fix hard-coded HRESULT return in Direct3DRMFrame_create. 2015-03-31 00:04:44 +09:00
Michael Stefaniuc 8abed244a2 d3drm/tests: Test the correct return code. 2015-03-30 19:10:30 +09:00
Henri Verbeet c5f03c3933 d3drm: Get rid of some incorrect comments. 2015-03-20 21:32:27 +09:00
Aaryaman Vasishta b436b4b2b9 d3drm/tests: Remove dynamic loading in vector.c. 2015-03-18 23:59:27 +09:00
Aaryaman Vasishta 57281caa23 d3drm/tests: Remove dynamic loading in d3drm.c. 2015-03-18 23:59:23 +09:00
Aaryaman Vasishta 6c0f864c0f d3drm/tests: Add tests for invalid interfaces in IDirect3DRM::QueryInterface. 2015-03-18 23:59:16 +09:00
Aaryaman Vasishta c3c9cd1e1f d3drm: Fix IDirect3DRM::QueryInterface returning incorrect HRESULT on unsupported interfaces. 2015-03-18 23:58:06 +09:00
Aaryaman Vasishta cb1e856612 d3drm/tests: Add tests for querying between IDirect3DRM interfaces. 2015-03-17 23:50:30 +09:00
Francois Gouget f289bab06a d3drm: Mark internal symbols with hidden visibility. 2015-03-17 14:18:31 +09:00
Michael Stefaniuc dcba8edba6 d3drm: Remove an unused assignment (PVS-Studio). 2015-01-13 19:54:03 +01:00
Michael Stefaniuc 0726542ded d3drm: Pass the correct pointer to IDirectXFileData_GetData (PVS-Studio).
Also remove an uneeded initialization of "size" as that is purely an
[OUT] parameter.
2014-10-30 23:09:09 +09:00
Nikolay Sivov 023e885156 d3drm/tests: Release frame instance (Valgrind). 2014-06-16 09:30:29 +02:00
Alexandre Julliard 7d3559bfe9 dxguid: Remove some symbols that aren't exported in native. 2014-04-24 12:41:38 +02:00
Andrey Gusev e7f0a8a081 Assorted spelling and typos fixes. 2014-01-27 17:00:11 +01:00
Alexandre Julliard 99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +01:00
Alexandre Julliard 5e7416e5c8 makefiles: Get rid of the MAKE_DLL_RULES variable. 2014-01-02 12:08:18 +01:00
Frédéric Delanoy 464110b1cb d3drm/tests: Use BOOL type where appropriate. 2013-11-08 12:46:27 +01:00
Henri Verbeet 59dd66df2e d3drm: Get rid of the IDirect3DRMViewportImpl typedef. 2013-11-01 10:53:18 +01:00
Henri Verbeet 08eef6dad2 d3drm: Get rid of the IDirect3DRMTextureImpl typedef. 2013-11-01 10:53:16 +01:00
Henri Verbeet c35485d627 d3drm: Get rid of the IDirect3DRMMeshBuilderImpl typedef. 2013-10-31 09:58:44 +01:00
Henri Verbeet 22d40f0305 d3drm: Get rid of the mesh_material typedef. 2013-10-31 09:58:44 +01:00
Henri Verbeet 71168d9dcc d3drm: Get rid of the Coords2d typedef. 2013-10-30 11:21:32 +01:00
Henri Verbeet 64a778848f d3drm: Get rid of the IDirect3DRMMeshImpl typedef. 2013-10-30 11:21:32 +01:00
Henri Verbeet ff08d70f4a d3drm: Get rid of the mesh_group typedef. 2013-10-29 10:34:22 +01:00
Henri Verbeet 0365d7a93b d3drm: Get rid of the color_rgb typedef. 2013-10-29 10:34:21 +01:00
Henri Verbeet 687e5cd330 d3drm: Get rid of the IDirect3DRMMaterialImpl typedef. 2013-10-28 14:22:46 +01:00
Henri Verbeet f4ca38eded d3drm: Get rid of the IDirect3DRMLightImpl typedef. 2013-10-28 14:22:43 +01:00
Henri Verbeet 7dc0738911 d3drm: Initialize the actual array in d3drm_light_array_create() as well. 2013-10-28 14:22:41 +01:00
Henri Verbeet c0d05d9f4f d3drm: Initialize the actual array in d3drm_visual_array_create() as well. 2013-10-28 14:22:38 +01:00
Henri Verbeet bf235a6669 d3drm: Initialize the actual array in d3drm_frame_array_create() as well. 2013-10-28 14:22:36 +01:00
Marcus Meissner 8431e75af3 d3drm: Added some freeing of memory in error paths (Coverity). 2013-10-14 10:48:23 +02:00
Henri Verbeet 34548b4dfe d3drm: Get rid of the IDirect3DRMFrameImpl typedef. 2013-10-11 11:06:25 +02:00
Henri Verbeet 666c6b36f1 d3drm: Get rid of the IDirect3DRMFrameArrayImpl typedef. 2013-10-11 11:06:23 +02:00
Henri Verbeet 3ffd998c46 d3drm: Get rid of the IDirect3DRMVisualArrayImpl typedef. 2013-10-10 10:45:05 +02:00
Henri Verbeet cb49cff060 d3drm: Introduce impl_from_IDirect3DRMFrameArray(). 2013-10-10 10:45:02 +02:00
Henri Verbeet 44f5d4bd64 d3drm: Introduce impl_from_IDirect3DRMVisualArray(). 2013-10-09 11:11:11 +02:00