Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
774c5f77
Commit
774c5f77
authored
Nov 24, 2002
by
Christian Costa
Committed by
Alexandre Julliard
Nov 24, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reenable OpenGL surface's flip method.
Reenable execute buffers. Some bug fixes.
parent
97bd11de
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
67 additions
and
75 deletions
+67
-75
mesa.c
dlls/ddraw/d3ddevice/mesa.c
+8
-11
d3dexecutebuffer.c
dlls/ddraw/d3dexecutebuffer.c
+54
-59
main.c
dlls/ddraw/direct3d/main.c
+2
-2
mesa.c
dlls/ddraw/direct3d/mesa.c
+3
-3
No files found.
dlls/ddraw/d3ddevice/mesa.c
View file @
774c5f77
...
...
@@ -132,20 +132,17 @@ static BOOL opengl_flip( LPVOID display, LPVOID drawable)
/*******************************************************************************
* OpenGL static functions
*/
static
void
set_context
(
IDirect3DDeviceImpl
*
This
)
{
#if 0
D3DDPRIVATE(This)
;
static
void
set_context
(
IDirect3DDeviceImpl
*
This
)
{
IDirect3DDeviceGLImpl
*
glThis
=
(
IDirect3DDeviceGLImpl
*
)
This
;
ENTER_GL
();
TRACE("glxMakeCurrent %p, %ld, %p\n",
odev->gdi_display,odev->drawable, odev->ctx
);
if (glXMakeCurrent(
odev->gdi_display,odev->drawable, odev->ctx
) == False) {
TRACE
(
"glxMakeCurrent %p, %ld, %p
\n
"
,
glThis
->
display
,
glThis
->
drawable
,
glThis
->
gl_context
);
if
(
glXMakeCurrent
(
glThis
->
display
,
glThis
->
drawable
,
glThis
->
gl_context
)
==
False
)
{
ERR
(
"Error in setting current context (context %p drawable %ld)!
\n
"
,
odev->ctx, odev
->drawable);
glThis
->
gl_context
,
glThis
->
drawable
);
}
LEAVE_GL
();
#else
ERR
(
"This function should not be called in the current state of the code...
\n
"
);
#endif
}
static
void
fill_opengl_primcaps
(
D3DPRIMCAPS
*
pc
)
...
...
@@ -1083,7 +1080,7 @@ d3ddevice_create(IDirect3DDeviceImpl **obj, IDirect3DImpl *d3d, IDirectDrawSurfa
glColor3f
(
1
.
0
,
1
.
0
,
1
.
0
);
LEAVE_GL
();
fill_device_capabilities
(
d3d
->
ddraw
);
/* fill_device_capabilities(d3d->ddraw); */
ICOM_INIT_INTERFACE
(
object
,
IDirect3DDevice
,
VTABLE_IDirect3DDevice
);
ICOM_INIT_INTERFACE
(
object
,
IDirect3DDevice2
,
VTABLE_IDirect3DDevice2
);
...
...
dlls/ddraw/d3dexecutebuffer.c
View file @
774c5f77
This diff is collapsed.
Click to expand it.
dlls/ddraw/direct3d/main.c
View file @
774c5f77
...
...
@@ -426,7 +426,7 @@ Thunk_IDirect3DImpl_1_CreateMaterial(LPDIRECT3D iface,
&
ret_val
,
pUnkOuter
);
*
lplpDirect3DMaterial
=
COM_INTERFACE_CAST
(
IDirect3DMaterialImpl
,
IDirect3DMaterial3
,
IDirect3DMaterial
,
&
ret_val
);
*
lplpDirect3DMaterial
=
COM_INTERFACE_CAST
(
IDirect3DMaterialImpl
,
IDirect3DMaterial3
,
IDirect3DMaterial
,
ret_val
);
TRACE
(
" returning interface %p.
\n
"
,
*
lplpDirect3DMaterial
);
...
...
@@ -457,7 +457,7 @@ Thunk_IDirect3DImpl_2_CreateMaterial(LPDIRECT3D2 iface,
&
ret_val
,
pUnkOuter
);
*
lplpDirect3DMaterial2
=
COM_INTERFACE_CAST
(
IDirect3DMaterialImpl
,
IDirect3DMaterial3
,
IDirect3DMaterial2
,
&
ret_val
);
*
lplpDirect3DMaterial2
=
COM_INTERFACE_CAST
(
IDirect3DMaterialImpl
,
IDirect3DMaterial3
,
IDirect3DMaterial2
,
ret_val
);
TRACE
(
" returning interface %p.
\n
"
,
*
lplpDirect3DMaterial2
);
...
...
dlls/ddraw/direct3d/mesa.c
View file @
774c5f77
...
...
@@ -281,7 +281,7 @@ ICOM_VTABLE(IDirect3D3) VTABLE_IDirect3D3 =
XCAST
(
AddRef
)
Thunk_IDirect3DImpl_3_AddRef
,
XCAST
(
Release
)
Thunk_IDirect3DImpl_3_Release
,
XCAST
(
EnumDevices
)
GL_IDirect3DImpl_3_EnumDevices
,
XCAST
(
CreateLight
)
Main
_IDirect3DImpl_3_2T_1T_CreateLight
,
XCAST
(
CreateLight
)
GL
_IDirect3DImpl_3_2T_1T_CreateLight
,
XCAST
(
CreateMaterial
)
GL_IDirect3DImpl_3_2T_1T_CreateMaterial
,
XCAST
(
CreateViewport
)
GL_IDirect3DImpl_3_2T_1T_CreateViewport
,
XCAST
(
FindDevice
)
Main_IDirect3DImpl_3_2T_FindDevice
,
...
...
@@ -308,7 +308,7 @@ ICOM_VTABLE(IDirect3D2) VTABLE_IDirect3D2 =
XCAST
(
QueryInterface
)
Thunk_IDirect3DImpl_2_QueryInterface
,
XCAST
(
AddRef
)
Thunk_IDirect3DImpl_2_AddRef
,
XCAST
(
Release
)
Thunk_IDirect3DImpl_2_Release
,
XCAST
(
EnumDevices
)
Thunk
_IDirect3DImpl_2_EnumDevices
,
XCAST
(
EnumDevices
)
GL
_IDirect3DImpl_2_EnumDevices
,
XCAST
(
CreateLight
)
Thunk_IDirect3DImpl_2_CreateLight
,
XCAST
(
CreateMaterial
)
Thunk_IDirect3DImpl_2_CreateMaterial
,
XCAST
(
CreateViewport
)
Thunk_IDirect3DImpl_2_CreateViewport
,
...
...
@@ -334,7 +334,7 @@ ICOM_VTABLE(IDirect3D) VTABLE_IDirect3D =
XCAST
(
AddRef
)
Thunk_IDirect3DImpl_1_AddRef
,
XCAST
(
Release
)
Thunk_IDirect3DImpl_1_Release
,
XCAST
(
Initialize
)
Main_IDirect3DImpl_1_Initialize
,
XCAST
(
EnumDevices
)
Thunk
_IDirect3DImpl_1_EnumDevices
,
XCAST
(
EnumDevices
)
GL
_IDirect3DImpl_1_EnumDevices
,
XCAST
(
CreateLight
)
Thunk_IDirect3DImpl_1_CreateLight
,
XCAST
(
CreateMaterial
)
Thunk_IDirect3DImpl_1_CreateMaterial
,
XCAST
(
CreateViewport
)
Thunk_IDirect3DImpl_1_CreateViewport
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment