Fix T79494 Refrence Image reflects object after source got deleted

Silly typo was causing the error texture to not be bound.
This commit is contained in:
Clément Foucault 2020-08-25 19:25:39 +02:00
parent 97f75ca87f
commit 999667a8c5
Notes: blender-bot 2023-02-21 17:59:30 +01:00
Referenced by issue #79494, Refrence Image reflects object after source got deleted
1 changed files with 2 additions and 2 deletions

View File

@ -1158,9 +1158,9 @@ static GLenum convert_target_to_gl(int dimension, bool is_array)
{
switch (dimension) {
case 1:
return is_array ? GL_TEXTURE_1D : GL_TEXTURE_1D_ARRAY;
return is_array ? GL_TEXTURE_1D_ARRAY : GL_TEXTURE_1D;
case 2:
return is_array ? GL_TEXTURE_2D : GL_TEXTURE_2D_ARRAY;
return is_array ? GL_TEXTURE_2D_ARRAY : GL_TEXTURE_2D;
case 3:
return GL_TEXTURE_3D;
default: