[Mesa-dev] [PATCH] mesa: print target string in glBindTexture() error message
Edward O'Callaghan
funfunctor at folklore1984.net
Mon Apr 17 03:59:14 UTC 2017
Reviewed-by: Edward O'Callaghan <funfunctor at folklore1984.net>
On 04/15/2017 01:02 PM, Timothy Arceri wrote:
> Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
>
> On 15/04/17 04:42, Brian Paul wrote:
>> ---
>> src/mesa/main/texobj.c | 3 ++-
>> 1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c
>> index ad644ca..00feb97 100644
>> --- a/src/mesa/main/texobj.c
>> +++ b/src/mesa/main/texobj.c
>> @@ -1663,7 +1663,8 @@ _mesa_BindTexture( GLenum target, GLuint texName )
>>
>> targetIndex = _mesa_tex_target_to_index(ctx, target);
>> if (targetIndex < 0) {
>> - _mesa_error(ctx, GL_INVALID_ENUM, "glBindTexture(target)");
>> + _mesa_error(ctx, GL_INVALID_ENUM, "glBindTexture(target = %s)",
>> + _mesa_enum_to_string(target));
>> return;
>> }
>> assert(targetIndex < NUM_TEXTURE_TARGETS);
>>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170417/d87166c9/attachment.sig>
More information about the mesa-dev
mailing list