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
98520ef4
Commit
98520ef4
authored
Aug 10, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Aug 10, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gcc 4.0 warning fixes.
parent
a25f8c49
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
wgl.c
dlls/opengl32/wgl.c
+4
-4
wgl_ext.c
dlls/opengl32/wgl_ext.c
+7
-7
No files found.
dlls/opengl32/wgl.c
View file @
98520ef4
...
...
@@ -360,7 +360,7 @@ void* WINAPI wglGetProcAddress(LPCSTR lpszProc) {
if
(
wgl_ext_ret
==
NULL
)
{
/* Some sanity checks :-) */
ENTER_GL
();
local_func
=
p_glXGetProcAddressARB
(
lpszProc
);
local_func
=
p_glXGetProcAddressARB
(
(
const
GLubyte
*
)
lpszProc
);
LEAVE_GL
();
if
(
local_func
!=
NULL
)
{
WARN
(
"Extension %s defined in the OpenGL library but NOT in opengl_ext.c...
\n
"
,
lpszProc
);
...
...
@@ -391,7 +391,7 @@ void* WINAPI wglGetProcAddress(LPCSTR lpszProc) {
}
}
else
{
ENTER_GL
();
local_func
=
p_glXGetProcAddressARB
(
ext_ret
->
glx_name
);
local_func
=
p_glXGetProcAddressARB
(
(
const
GLubyte
*
)
ext_ret
->
glx_name
);
LEAVE_GL
();
/* After that, look at the extensions defined in the Linux OpenGL library */
...
...
@@ -762,7 +762,7 @@ const GLubyte * internal_glGetString(GLenum name) {
}
if
(
NULL
==
internal_gl_extensions
)
{
GL_Extensions
=
glGetString
(
GL_EXTENSIONS
);
GL_Extensions
=
(
const
char
*
)
glGetString
(
GL_EXTENSIONS
);
TRACE
(
"GL_EXTENSIONS reported:
\n
"
);
if
(
NULL
==
GL_Extensions
)
{
...
...
@@ -796,7 +796,7 @@ const GLubyte * internal_glGetString(GLenum name) {
}
}
}
return
internal_gl_extensions
;
return
(
const
GLubyte
*
)
internal_gl_extensions
;
}
...
...
dlls/opengl32/wgl_ext.c
View file @
98520ef4
...
...
@@ -138,9 +138,9 @@ BOOL query_function_render_texture(glXGetProcAddressARB_t proc, const char *gl_v
BOOL
bTest
=
(
0
<=
strcmp
(
"1.3"
,
glx_version
)
||
NULL
!=
strstr
(
glx_extensions
,
"GLX_SGIX_pbuffer"
));
if
(
bTest
)
{
if
(
NULL
!=
strstr
(
glx_extensions
,
"GLX_ARB_render_texture"
))
{
p_glXBindTexImageARB
=
proc
(
"glXBindTexImageARB"
);
p_glXReleaseTexImageARB
=
proc
(
"glXReleaseTexImageARB"
);
p_glXDrawableAttribARB
=
proc
(
"glXDrawableAttribARB"
);
p_glXBindTexImageARB
=
proc
(
(
const
GLubyte
*
)
"glXBindTexImageARB"
);
p_glXReleaseTexImageARB
=
proc
(
(
const
GLubyte
*
)
"glXReleaseTexImageARB"
);
p_glXDrawableAttribARB
=
proc
(
(
const
GLubyte
*
)
"glXDrawableAttribARB"
);
bTest
=
(
NULL
!=
p_glXBindTexImageARB
&&
NULL
!=
p_glXReleaseTexImageARB
&&
NULL
!=
p_glXDrawableAttribARB
);
}
else
{
use_render_texture_emulation
=
0
;
...
...
@@ -156,7 +156,7 @@ BOOL query_function_swap_control(glXGetProcAddressARB_t proc, const char *gl_ver
{
BOOL
bTest
=
(
0
<=
strcmp
(
"1.3"
,
glx_version
)
||
NULL
!=
strstr
(
glx_extensions
,
"GLX_SGI_swap_control"
));
if
(
bTest
)
{
p_glXSwapIntervalSGI
=
proc
(
"glXSwapIntervalSGI"
);
p_glXSwapIntervalSGI
=
proc
(
(
const
GLubyte
*
)
"glXSwapIntervalSGI"
);
bTest
=
(
NULL
!=
p_glXSwapIntervalSGI
);
}
return
bTest
;
...
...
@@ -901,10 +901,10 @@ GLboolean WINAPI wglQueryPbufferARB(HPBUFFERARB hPbuffer, int iAttribute, int *p
}
switch
(
iAttribute
)
{
case
WGL_PBUFFER_WIDTH_ARB
:
glXQueryDrawable
(
object
->
display
,
object
->
drawable
,
GLX_WIDTH
,
piValue
);
glXQueryDrawable
(
object
->
display
,
object
->
drawable
,
GLX_WIDTH
,
(
unsigned
int
*
)
piValue
);
break
;
case
WGL_PBUFFER_HEIGHT_ARB
:
glXQueryDrawable
(
object
->
display
,
object
->
drawable
,
GLX_HEIGHT
,
piValue
);
glXQueryDrawable
(
object
->
display
,
object
->
drawable
,
GLX_HEIGHT
,
(
unsigned
int
*
)
piValue
);
break
;
case
WGL_PBUFFER_LOST_ARB
:
...
...
@@ -967,7 +967,7 @@ GLboolean WINAPI wglReleaseTexImageARB(HPBUFFERARB hPbuffer, int iBuffer)
return
GL_FALSE
;
}
if
(
1
==
use_render_texture_emulation
)
{
GL
u
int
prev_binded_tex
;
GLint
prev_binded_tex
;
glGetIntegerv
(
object
->
texture_target
,
&
prev_binded_tex
);
glBindTexture
(
object
->
texture_target
,
object
->
texture
);
if
(
GL_TEXTURE_1D
==
object
->
texture_target
)
{
...
...
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