mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 12:30:09 +01:00
mesa: add null ptr checks in GetTexParameterI[u]iv() functions
This commit is contained in:
parent
1254a2b2e4
commit
02d81dfcaf
1 changed files with 4 additions and 0 deletions
|
|
@ -1379,6 +1379,8 @@ _mesa_GetTexParameterIiv(GLenum target, GLenum pname, GLint *params)
|
|||
ASSERT_OUTSIDE_BEGIN_END(ctx);
|
||||
|
||||
texObj = get_texobj(ctx, target, GL_TRUE);
|
||||
if (!texObj)
|
||||
return;
|
||||
|
||||
switch (pname) {
|
||||
case GL_TEXTURE_BORDER_COLOR:
|
||||
|
|
@ -1399,6 +1401,8 @@ _mesa_GetTexParameterIuiv(GLenum target, GLenum pname, GLuint *params)
|
|||
ASSERT_OUTSIDE_BEGIN_END(ctx);
|
||||
|
||||
texObj = get_texobj(ctx, target, GL_TRUE);
|
||||
if (!texObj)
|
||||
return;
|
||||
|
||||
switch (pname) {
|
||||
case GL_TEXTURE_BORDER_COLOR:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue