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
af3f3cb1
Commit
af3f3cb1
authored
Nov 07, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Avoid using the system GL headers.
parent
fdc1f2d4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
15 deletions
+21
-15
Makefile.in
dlls/gdi32/Makefile.in
+1
-1
opengl.c
dlls/gdi32/dibdrv/opengl.c
+20
-14
No files found.
dlls/gdi32/Makefile.in
View file @
af3f3cb1
...
...
@@ -2,7 +2,7 @@ EXTRADEFS = -D_GDI32_
MODULE
=
gdi32.dll
IMPORTLIB
=
gdi32
IMPORTS
=
advapi32
EXTRAINCL
=
@FREETYPEINCL@ @FONTCONFIGINCL@
@X_CFLAGS@
EXTRAINCL
=
@FREETYPEINCL@ @FONTCONFIGINCL@
EXTRALIBS
=
@CARBONLIB@
DELAYIMPORTS
=
usp10
...
...
dlls/gdi32/dibdrv/opengl.c
View file @
af3f3cb1
...
...
@@ -21,13 +21,6 @@
#include "config.h"
#include "wine/port.h"
#ifdef HAVE_GL_OSMESA_H
#include <GL/osmesa.h>
#undef APIENTRY
#undef GLAPI
#undef WINGDIAPI
#endif
#include "gdi_private.h"
#include "dibdrv.h"
...
...
@@ -38,8 +31,21 @@ WINE_DEFAULT_DEBUG_CHANNEL(dib);
#ifdef SONAME_LIBOSMESA
#include "wine/wgl.h"
#include "wine/wgl_driver.h"
#define OSMESA_COLOR_INDEX GL_COLOR_INDEX
#define OSMESA_RGBA GL_RGBA
#define OSMESA_BGRA 0x1
#define OSMESA_ARGB 0x2
#define OSMESA_RGB GL_RGB
#define OSMESA_BGR 0x4
#define OSMESA_RGB_565 0x5
#define OSMESA_ROW_LENGTH 0x10
#define OSMESA_Y_UP 0x11
typedef
struct
osmesa_context
*
OSMesaContext
;
extern
BOOL
WINAPI
GdiSetPixelFormat
(
HDC
hdc
,
INT
fmt
,
const
PIXELFORMATDESCRIPTOR
*
pfd
);
struct
wgl_context
...
...
@@ -54,13 +60,13 @@ static struct opengl_funcs opengl_funcs;
static
const
char
*
opengl_func_names
[]
=
{
ALL_WGL_FUNCS
};
#undef USE_GL_FUNC
#define MAKE_FUNCPTR(f) static typeof(f) * p##f;
MAKE_FUNCPTR
(
OSMesaCreateContextExt
)
MAKE_FUNCPTR
(
OSMesaDestroyContext
)
MAKE_FUNCPTR
(
OSMesaGetProcAddress
)
MAKE_FUNCPTR
(
OSMesaMakeCurrent
)
MAKE_FUNCPTR
(
OSMesaPixelStore
)
#undef MAKE_FUNCPTR
static
OSMesaContext
(
*
pOSMesaCreateContextExt
)(
GLenum
format
,
GLint
depthBits
,
GLint
stencilBits
,
GLint
accumBits
,
OSMesaContext
sharelist
);
static
void
(
*
pOSMesaDestroyContext
)(
OSMesaContext
ctx
);
static
void
*
(
*
pOSMesaGetProcAddress
)(
const
char
*
funcName
);
static
GLboolean
(
*
pOSMesaMakeCurrent
)(
OSMesaContext
ctx
,
void
*
buffer
,
GLenum
type
,
GLsizei
width
,
GLsizei
height
);
static
void
(
*
pOSMesaPixelStore
)(
GLint
pname
,
GLint
value
);
static
const
struct
{
...
...
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