mesa: add/update VERBOSE_API logging
This commit is contained in:
@@ -1184,6 +1184,8 @@ void GLAPIENTRY
|
||||
_mesa_CompileShaderARB(GLhandleARB shaderObj)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glCompileShader %u\n", shaderObj);
|
||||
compile_shader(ctx, shaderObj);
|
||||
}
|
||||
|
||||
@@ -1192,6 +1194,8 @@ GLuint GLAPIENTRY
|
||||
_mesa_CreateShader(GLenum type)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glCreateShader %s\n", _mesa_lookup_enum_by_nr(type));
|
||||
return create_shader(ctx, type);
|
||||
}
|
||||
|
||||
@@ -1208,6 +1212,8 @@ GLuint GLAPIENTRY
|
||||
_mesa_CreateProgram(void)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx, "glCreateProgram\n");
|
||||
return create_shader_program(ctx);
|
||||
}
|
||||
|
||||
@@ -1223,6 +1229,11 @@ _mesa_CreateProgramObjectARB(void)
|
||||
void GLAPIENTRY
|
||||
_mesa_DeleteObjectARB(GLhandleARB obj)
|
||||
{
|
||||
if (MESA_VERBOSE & VERBOSE_API) {
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
_mesa_debug(ctx, "glDeleteObjectARB(%u)\n", obj);
|
||||
}
|
||||
|
||||
if (obj) {
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
if (is_program(ctx, obj)) {
|
||||
|
Reference in New Issue
Block a user