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
f625707f
Commit
f625707f
authored
Apr 24, 2017
by
Sebastian Lackner
Committed by
Alexandre Julliard
Apr 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Support for recent versions of OSMesa.
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
87a8c558
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
11 deletions
+12
-11
configure
configure
+2
-2
configure.ac
configure.ac
+1
-1
opengl.c
dlls/gdi32/dibdrv/opengl.c
+9
-8
No files found.
configure
View file @
f625707f
...
...
@@ -10866,11 +10866,11 @@ LIBS="-lOSMesa $X_LIBS -lm $X_EXTRA_LIBS $LIBS"
#ifdef __cplusplus
extern "C"
#endif
char
glAccum
();
char
OSMesaGetProcAddress
();
int
main ()
{
return
glAccum
();
return
OSMesaGetProcAddress
();
;
return 0;
}
...
...
configure.ac
View file @
f625707f
...
...
@@ -1149,7 +1149,7 @@ This probably prevents linking to OpenGL. Try deleting the file and restarting c
if test "x$with_osmesa" != "xno"
then
WINE_CHECK_SONAME(OSMesa,
glAccum
,,,[$X_LIBS -lm $X_EXTRA_LIBS])
WINE_CHECK_SONAME(OSMesa,
OSMesaGetProcAddress
,,,[$X_LIBS -lm $X_EXTRA_LIBS])
WINE_NOTICE_WITH(osmesa,[test "x$ac_cv_lib_soname_OSMesa" = "x"],
[libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.])
fi
...
...
dlls/gdi32/dibdrv/opengl.c
View file @
f625707f
...
...
@@ -113,14 +113,6 @@ static BOOL init_opengl(void)
return
FALSE
;
}
for
(
i
=
0
;
i
<
sizeof
(
opengl_func_names
)
/
sizeof
(
opengl_func_names
[
0
]);
i
++
)
{
if
(
!
(((
void
**
)
&
opengl_funcs
.
gl
)[
i
]
=
wine_dlsym
(
osmesa_handle
,
opengl_func_names
[
i
],
buffer
,
sizeof
(
buffer
)
)))
{
ERR
(
"%s not found in %s (%s), disabling.
\n
"
,
opengl_func_names
[
i
],
SONAME_LIBOSMESA
,
buffer
);
goto
failed
;
}
}
#define LOAD_FUNCPTR(f) do if (!(p##f = wine_dlsym( osmesa_handle, #f, buffer, sizeof(buffer) ))) \
{ \
ERR( "%s not found in %s (%s), disabling.\n", #f, SONAME_LIBOSMESA, buffer ); \
...
...
@@ -134,6 +126,15 @@ static BOOL init_opengl(void)
LOAD_FUNCPTR
(
OSMesaPixelStore
);
#undef LOAD_FUNCPTR
for
(
i
=
0
;
i
<
sizeof
(
opengl_func_names
)
/
sizeof
(
opengl_func_names
[
0
]);
i
++
)
{
if
(
!
(((
void
**
)
&
opengl_funcs
.
gl
)[
i
]
=
pOSMesaGetProcAddress
(
opengl_func_names
[
i
]
)))
{
ERR
(
"%s not found in %s, disabling.
\n
"
,
opengl_func_names
[
i
],
SONAME_LIBOSMESA
);
goto
failed
;
}
}
return
TRUE
;
failed:
...
...
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