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
b643ab36
Commit
b643ab36
authored
Apr 23, 2007
by
H. Verbeet
Committed by
Alexandre Julliard
Apr 24, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Output pretty GL errors in checkGLcall and vcheckGLcall.
parent
7370a93b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
4 deletions
+23
-4
utils.c
dlls/wined3d/utils.c
+18
-0
wined3d_private.h
dlls/wined3d/wined3d_private.h
+5
-4
No files found.
dlls/wined3d/utils.c
View file @
b643ab36
...
...
@@ -714,6 +714,24 @@ const char *debug_fbostatus(GLenum status) {
}
}
const
char
*
debug_glerror
(
GLenum
error
)
{
switch
(
error
)
{
#define GLERROR_TO_STR(u) case u: return #u
GLERROR_TO_STR
(
GL_NO_ERROR
);
GLERROR_TO_STR
(
GL_INVALID_ENUM
);
GLERROR_TO_STR
(
GL_INVALID_VALUE
);
GLERROR_TO_STR
(
GL_INVALID_OPERATION
);
GLERROR_TO_STR
(
GL_STACK_OVERFLOW
);
GLERROR_TO_STR
(
GL_STACK_UNDERFLOW
);
GLERROR_TO_STR
(
GL_OUT_OF_MEMORY
);
GLERROR_TO_STR
(
GL_INVALID_FRAMEBUFFER_OPERATION_EXT
);
#undef GLERROR_TO_STR
default:
FIXME
(
"Unrecognied GL error 0x%08x
\n
"
,
error
);
return
"unrecognized"
;
}
}
/*****************************************************************************
* Useful functions mapping GL <-> D3D values
*/
...
...
dlls/wined3d/wined3d_private.h
View file @
b643ab36
...
...
@@ -272,8 +272,8 @@ extern int num_lock;
TRACE("%s call ok %s / %d\n", A, __FILE__, __LINE__); \
\
} else do { \
FIXME(">>>>>>>>>>>>>>>>> %#x from %s @ %s / %d\n",
\
err, A, __FILE__, __LINE__);
\
FIXME(">>>>>>>>>>>>>>>>> %s (%#x) from %s @ %s / %d\n",
\
debug_glerror(err), err, A, __FILE__, __LINE__);
\
err = glGetError(); \
} while (err != GL_NO_ERROR); \
}
...
...
@@ -357,8 +357,8 @@ extern const float identity[16];
VTRACE(("%s call ok %s / %d\n", A, __FILE__, __LINE__)); \
\
} else do { \
FIXME(">>>>>>>>>>>>>>>>> %#x from %s @ %s / %d\n",
\
err, A, __FILE__, __LINE__);
\
FIXME(">>>>>>>>>>>>>>>>> %s (%#x) from %s @ %s / %d\n",
\
debug_glerror(err), err, A, __FILE__, __LINE__);
\
err = glGetError(); \
} while (err != GL_NO_ERROR); \
}
...
...
@@ -1403,6 +1403,7 @@ const char* debug_d3dtexturestate(DWORD state);
const
char
*
debug_d3dtstype
(
WINED3DTRANSFORMSTATETYPE
tstype
);
const
char
*
debug_d3dpool
(
WINED3DPOOL
pool
);
const
char
*
debug_fbostatus
(
GLenum
status
);
const
char
*
debug_glerror
(
GLenum
error
);
/* Routines for GL <-> D3D values */
GLenum
StencilOp
(
DWORD
op
);
...
...
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