mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
mesa: fix using texture id 0 with gl*TextureParameter*()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
7f47c31f8c
commit
45eb87e5e5
1 changed files with 2 additions and 4 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue