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
a1bc5b8c
Commit
a1bc5b8c
authored
Jun 21, 2016
by
Henri Verbeet
Committed by
Alexandre Julliard
Jun 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Don't bother with glGetError() if we have ARB_DEBUG_OUTPUT.
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c7bbc830
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
11 deletions
+26
-11
context.c
dlls/wined3d/context.c
+19
-0
drawprim.c
dlls/wined3d/drawprim.c
+1
-0
wined3d_private.h
dlls/wined3d/wined3d_private.h
+6
-11
No files found.
dlls/wined3d/context.c
View file @
a1bc5b8c
...
...
@@ -1550,6 +1550,25 @@ static void bind_dummy_textures(const struct wined3d_device *device, const struc
}
}
void
wined3d_check_gl_call
(
const
struct
wined3d_gl_info
*
gl_info
,
const
char
*
file
,
unsigned
int
line
,
const
char
*
name
)
{
GLint
err
;
if
(
gl_info
->
supported
[
ARB_DEBUG_OUTPUT
]
||
(
err
=
gl_info
->
gl_ops
.
gl
.
p_glGetError
())
==
GL_NO_ERROR
)
{
TRACE
(
"%s call ok %s / %u.
\n
"
,
name
,
file
,
line
);
return
;
}
do
{
ERR
(
">>>>>>> %s (%#x) from %s @ %s / %u.
\n
"
,
debug_glerror
(
err
),
err
,
name
,
file
,
line
);
err
=
gl_info
->
gl_ops
.
gl
.
p_glGetError
();
}
while
(
err
!=
GL_NO_ERROR
);
}
static
BOOL
context_debug_output_enabled
(
const
struct
wined3d_gl_info
*
gl_info
)
{
return
gl_info
->
supported
[
ARB_DEBUG_OUTPUT
]
...
...
dlls/wined3d/drawprim.c
View file @
a1bc5b8c
...
...
@@ -31,6 +31,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d_draw
);
WINE_DECLARE_DEBUG_CHANNEL
(
d3d_perf
);
WINE_DECLARE_DEBUG_CHANNEL
(
d3d
);
#include <stdio.h>
#include <math.h>
...
...
dlls/wined3d/wined3d_private.h
View file @
a1bc5b8c
...
...
@@ -1130,22 +1130,17 @@ static inline void wined3d_color_from_d3dcolor(struct wined3d_color *wined3d_col
#define HIGHEST_TRANSFORMSTATE WINED3D_TS_WORLD_MATRIX(255)
/* Highest value in wined3d_transform_state. */
void
wined3d_check_gl_call
(
const
struct
wined3d_gl_info
*
gl_info
,
const
char
*
file
,
unsigned
int
line
,
const
char
*
name
)
DECLSPEC_HIDDEN
;
/* Checking of API calls */
/* --------------------- */
#ifndef WINE_NO_DEBUG_MSGS
#define checkGLcall(A) \
do { \
GLint err; \
if (!__WINE_IS_DEBUG_ON(_ERR, __wine_dbch___default)) break; \
err = gl_info->gl_ops.gl.p_glGetError(); \
if (err == GL_NO_ERROR) { \
TRACE("%s call ok %s / %d\n", A, __FILE__, __LINE__); \
\
} else do { \
ERR(">>>>>>>>>>>>>>>>> %s (%#x) from %s @ %s / %d\n", \
debug_glerror(err), err, A, __FILE__, __LINE__); \
err = gl_info->gl_ops.gl.p_glGetError(); \
} while (err != GL_NO_ERROR); \
if (__WINE_IS_DEBUG_ON(_ERR, &__wine_dbch_d3d) \
&& !gl_info->supported[ARB_DEBUG_OUTPUT]) \
wined3d_check_gl_call(gl_info, __FILE__, __LINE__, A); \
} while(0)
#else
#define checkGLcall(A) do {} while(0)
...
...
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