mutable_tex_object(struct gl_context *ctx, GLenum target)
{
struct gl_texture_object *texObj = _mesa_get_current_tex_object(ctx, target);
+ if (!texObj)
+ return GL_FALSE;
+
return !texObj->Immutable;
}
_mesa_update_state(ctx);
texObj = _mesa_get_current_tex_object(ctx, target);
+ if (!texObj)
+ return;
+
_mesa_lock_texture(ctx, texObj);
if (texObj->Immutable) {
{
struct gl_texture_object *texObj;
struct gl_texture_image *texImage;
+
texObj = _mesa_get_current_tex_object(ctx, target);
+ if (!texObj)
+ return;
+
if (texsubimage_error_check(ctx, dims, texObj, target, level,
xoffset, yoffset, zoffset,
width, height, depth, format, type, false)) {
{
struct gl_texture_object *texObj;
GET_CURRENT_CONTEXT(ctx);
+
texObj = _mesa_get_current_tex_object(ctx, target);
+ if (!texObj)
+ return;
_mesa_texture_image_multisample(ctx, 2, texObj, target, samples,
internalformat, width, height, 1,
{
struct gl_texture_object *texObj;
GET_CURRENT_CONTEXT(ctx);
+
texObj = _mesa_get_current_tex_object(ctx, target);
+ if (!texObj)
+ return;
_mesa_texture_image_multisample(ctx, 3, texObj, target, samples,
internalformat, width, height, depth,
{
struct gl_texture_object *texObj;
GET_CURRENT_CONTEXT(ctx);
+
texObj = _mesa_get_current_tex_object(ctx, target);
+ if (!texObj)
+ return;
_mesa_texture_image_multisample(ctx, 2, texObj, target, samples,
internalformat, width, height, 1,
{
struct gl_texture_object *texObj;
GET_CURRENT_CONTEXT(ctx);
+
texObj = _mesa_get_current_tex_object(ctx, target);
+ if (!texObj)
+ return;
_mesa_texture_image_multisample(ctx, 3, texObj, target, samples,
internalformat, width, height, depth,