mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
mesa/main: do not gate performance warning
This warning effectively warns users about needless calls to glGetGraphicsResetStatusARB(), which is nice. But it's currently gated behind the undocumented VERBOSE_API flag, which also prints a whole lot of API-call tracing, making this useful message drown in the noise. So let's instead make this use the _mesa_per_debug macro, which will notify applications through the appropriate channels (GL_KHR_debug), making it more likely to be picked up by developers.
This commit is contained in:
parent
d7c9c54197
commit
25a7539b47
1 changed files with 4 additions and 5 deletions
|
|
@ -124,11 +124,10 @@ _mesa_GetGraphicsResetStatusARB( void )
|
|||
* events, and GetGraphicsResetStatusARB will always return NO_ERROR."
|
||||
*/
|
||||
if (ctx->Const.ResetStrategy == GL_NO_RESET_NOTIFICATION_ARB) {
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx,
|
||||
"glGetGraphicsResetStatusARB always returns GL_NO_ERROR "
|
||||
"because reset notifictation was not requested at context "
|
||||
"creation.\n");
|
||||
_mesa_perf_debug(ctx, MESA_DEBUG_SEVERITY_LOW,
|
||||
"glGetGraphicsResetStatusARB always returns GL_NO_ERROR "
|
||||
"because reset notifictation was not requested at context "
|
||||
"creation.\n");
|
||||
|
||||
return GL_NO_ERROR;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue