Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
6ac39376
Commit
6ac39376
authored
Jul 22, 2001
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Commented out references to x11drv internals from MESA code.
parent
0dd55c44
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
mesa.c
dlls/ddraw/d3ddevice/mesa.c
+7
-3
mesa_private.h
dlls/ddraw/mesa_private.h
+0
-1
wine_gl.h
include/wine_gl.h
+0
-1
No files found.
dlls/ddraw/d3ddevice/mesa.c
View file @
6ac39376
...
...
@@ -172,6 +172,7 @@ is_OpenGL(
TRACE
(
"Creating OpenGL device for surface %p
\n
"
,
surface
);
/* Create the OpenGL context */
#if COMPILABLE
/* First get the correct visual */
ENTER_GL
();
/* Create the context */
...
...
@@ -192,7 +193,6 @@ is_OpenGL(
else
TRACE
(
"Context created (%p)
\n
"
,
odev
->
ctx
);
#if COMPILABLE
/* Now override the surface's Flip method (if in double buffering) */
((
x11_ds_private
*
)
surface
->
private
)
->
opengl_flip
=
TRUE
;
{
...
...
@@ -243,13 +243,15 @@ is_OpenGL(
static
ULONG
WINAPI
MESA_IDirect3DDevice2Impl_Release
(
LPDIRECT3DDEVICE2
iface
)
{
ICOM_THIS
(
IDirect3DDevice2Impl
,
iface
);
D3DDPRIVATE
(
This
);
FIXME
(
"(%p)->() decrementing from %lu.
\n
"
,
This
,
This
->
ref
);
if
(
!--
(
This
->
ref
))
{
#if 0 /* broken for now */
D3DDPRIVATE(This);
ENTER_GL();
glXDestroyContext(gdi_display, odev->ctx);
LEAVE_GL();
#endif
This
->
private
=
NULL
;
HeapFree
(
GetProcessHeap
(),
0
,
This
);
return
0
;
...
...
@@ -834,6 +836,7 @@ int is_OpenGL_dx3(REFCLSID rguid, IDirectDrawSurfaceImpl* surface, IDirect3DDevi
/* First get the correct visual */
/* if (surface->s.backbuffer == NULL)
attributeList[3] = None; */
#if 0 /* non working currently */
ENTER_GL();
xvis = glXChooseVisual(gdi_display,
DefaultScreen(gdi_display),
...
...
@@ -849,7 +852,6 @@ int is_OpenGL_dx3(REFCLSID rguid, IDirectDrawSurfaceImpl* surface, IDirect3DDevi
GL_TRUE);
TRACE("Context created\n");
#if 0 /* non working currently */
/* Now override the surface's Flip method (if in double buffering) */
surface->s.d3d_device = (void *) odev;
{
...
...
@@ -889,10 +891,12 @@ static ULONG WINAPI MESA_IDirect3DDeviceImpl_Release(LPDIRECT3DDEVICE iface)
FIXME
(
"(%p)->() decrementing from %lu.
\n
"
,
This
,
This
->
ref
);
if
(
!--
(
This
->
ref
))
{
#if 0 /* broken for now */
D3DDPRIVATE(This);
ENTER_GL();
glXDestroyContext(gdi_display, odev->ctx);
LEAVE_GL();
#endif
This
->
private
=
NULL
;
HeapFree
(
GetProcessHeap
(),
0
,
This
);
return
0
;
...
...
dlls/ddraw/mesa_private.h
View file @
6ac39376
...
...
@@ -10,7 +10,6 @@
#include "d3d_private.h"
#include "wine_gl.h"
#include "x11drv.h"
/*****************************************************************************
* IDirect3DLight MESA private structure
...
...
include/wine_gl.h
View file @
6ac39376
...
...
@@ -12,7 +12,6 @@
#if defined(HAVE_OPENGL)
#include "ts_xlib.h"
#include "x11drv.h"
/* As GLX relies on X, this is needed */
#define ENTER_GL() wine_tsx11_lock()
...
...
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