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
b88b6b74
Commit
b88b6b74
authored
Jan 09, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opengl32: Get rid of the DIB section sync support.
parent
fecb1d8b
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
51 deletions
+3
-51
opengl_ext.h
dlls/opengl32/opengl_ext.h
+1
-2
wgl.c
dlls/opengl32/wgl.c
+0
-36
init.c
dlls/winex11.drv/init.c
+1
-7
opengl.c
dlls/winex11.drv/opengl.c
+1
-6
No files found.
dlls/opengl32/opengl_ext.h
View file @
b88b6b74
...
...
@@ -42,8 +42,7 @@ extern void (*wine_tsx11_lock_ptr)(void);
extern
void
(
*
wine_tsx11_unlock_ptr
)(
void
);
/* As GLX relies on X, this is needed */
void
enter_gl
(
void
);
#define ENTER_GL() enter_gl()
#define ENTER_GL() wine_tsx11_lock_ptr()
#define LEAVE_GL() wine_tsx11_unlock_ptr()
...
...
dlls/opengl32/wgl.c
View file @
b88b6b74
...
...
@@ -81,22 +81,6 @@ MAKE_FUNCPTR(gluTessVertex)
#undef MAKE_FUNCPTR
#endif
/* SONAME_LIBGLU */
/* x11drv GDI escapes */
#define X11DRV_ESCAPE 6789
enum
x11drv_escape_codes
{
X11DRV_GET_DISPLAY
,
/* get X11 display for a DC */
X11DRV_GET_DRAWABLE
,
/* get current drawable for a DC */
X11DRV_GET_FONT
,
/* get current X font for a DC */
X11DRV_SET_DRAWABLE
,
/* set current drawable for a DC */
X11DRV_START_EXPOSURES
,
/* start graphics exposures */
X11DRV_END_EXPOSURES
,
/* end graphics exposures */
X11DRV_GET_DCE
,
/* get the DCE pointer */
X11DRV_SET_DCE
,
/* set the DCE pointer */
X11DRV_GET_GLX_DRAWABLE
,
/* get current glx drawable for a DC */
X11DRV_SYNC_PIXMAP
/* sync the dibsection to its pixmap */
};
void
(
*
wine_tsx11_lock_ptr
)(
void
)
=
NULL
;
void
(
*
wine_tsx11_unlock_ptr
)(
void
)
=
NULL
;
...
...
@@ -106,26 +90,6 @@ static void* libglu_handle = NULL;
static
char
*
internal_gl_disabled_extensions
=
NULL
;
static
char
*
internal_gl_extensions
=
NULL
;
typedef
struct
wine_glcontext
{
HDC
hdc
;
BOOL
do_escape
;
/* ... more stuff here */
}
Wine_GLContext
;
void
enter_gl
(
void
)
{
Wine_GLContext
*
curctx
=
NtCurrentTeb
()
->
glContext
;
if
(
curctx
&&
curctx
->
do_escape
)
{
enum
x11drv_escape_codes
escape
=
X11DRV_SYNC_PIXMAP
;
ExtEscape
(
curctx
->
hdc
,
X11DRV_ESCAPE
,
sizeof
(
escape
),
(
LPCSTR
)
&
escape
,
0
,
NULL
);
}
wine_tsx11_lock_ptr
();
return
;
}
const
GLubyte
*
WINAPI
wine_glGetString
(
GLenum
name
);
/***********************************************************************
...
...
dlls/winex11.drv/init.c
View file @
b88b6b74
...
...
@@ -429,6 +429,7 @@ static INT X11DRV_ExtEscape( PHYSDEV dev, INT escape, INT in_count, LPCVOID in_d
break
;
case
X11DRV_GET_DCE
:
case
X11DRV_SET_DCE
:
case
X11DRV_SYNC_PIXMAP
:
FIXME
(
"%x escape no longer supported
\n
"
,
*
(
const
enum
x11drv_escape_codes
*
)
in_data
);
break
;
case
X11DRV_GET_GLX_DRAWABLE
:
...
...
@@ -438,13 +439,6 @@ static INT X11DRV_ExtEscape( PHYSDEV dev, INT escape, INT in_count, LPCVOID in_d
return
TRUE
;
}
break
;
case
X11DRV_SYNC_PIXMAP
:
if
(
physDev
->
bitmap
)
{
X11DRV_CoerceDIBSection
(
physDev
,
DIB_Status_GdiMod
);
return
TRUE
;
}
return
FALSE
;
case
X11DRV_FLUSH_GL_DRAWABLE
:
flush_gl_drawable
(
physDev
);
return
TRUE
;
...
...
dlls/winex11.drv/opengl.c
View file @
b88b6b74
...
...
@@ -111,7 +111,6 @@ typedef struct wine_glpixelformat {
typedef
struct
wine_glcontext
{
HDC
hdc
;
BOOL
do_escape
;
BOOL
has_been_current
;
BOOL
sharing
;
DWORD
tid
;
...
...
@@ -1950,11 +1949,7 @@ BOOL X11DRV_wglMakeCurrent(PHYSDEV dev, HGLRC hglrc)
ctx
->
drawables
[
1
]
=
drawable
;
ctx
->
refresh_drawables
=
FALSE
;
if
(
type
==
OBJ_MEMDC
)
{
ctx
->
do_escape
=
TRUE
;
pglDrawBuffer
(
GL_FRONT_LEFT
);
}
if
(
type
==
OBJ_MEMDC
)
pglDrawBuffer
(
GL_FRONT_LEFT
);
}
else
SetLastError
(
ERROR_INVALID_HANDLE
);
...
...
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