projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f47c31
)
mesa: fix using texture id 0 with gl*TextureParameter*()
author
Samuel Pitoiset
<samuel.pitoiset@gmail.com>
Wed, 21 Jun 2017 08:04:49 +0000
(10:04 +0200)
committer
Samuel Pitoiset
<samuel.pitoiset@gmail.com>
Thu, 22 Jun 2017 08:41:30 +0000
(10:41 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/main/texparam.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texparam.c
b/src/mesa/main/texparam.c
index 6c0a5c46d60b8be512332830c02692c21d991448..3c110de839a05d832a8cceb2c3b1250b1dd32c3c 100644
(file)
--- a/
src/mesa/main/texparam.c
+++ b/
src/mesa/main/texparam.c
@@
-157,11
+157,9
@@
get_texobj_by_name(struct gl_context *ctx, GLuint texture, const char *name)
{
struct gl_texture_object *texObj;
- texObj = _mesa_lookup_texture(ctx, texture);
- if (!texObj) {
- _mesa_error(ctx, GL_INVALID_OPERATION, "%s(texture)", name);
+ texObj = _mesa_lookup_texture_err(ctx, texture, name);
+ if (!texObj)
return NULL;
- }
switch (texObj->Target) {
case GL_TEXTURE_1D: