[Bf-blender-cvs] [999667a8c5f] master: Fix T79494 Refrence Image reflects object after source got deleted

Clément Foucault noreply at git.blender.org
Tue Aug 25 19:25:49 CEST 2020


Commit: 999667a8c5f6746ff84f269977d4abb8a20f33b5
Author: Clément Foucault
Date:   Tue Aug 25 19:25:39 2020 +0200
Branches: master
https://developer.blender.org/rB999667a8c5f6746ff84f269977d4abb8a20f33b5

Fix T79494 Refrence Image reflects object after source got deleted

Silly typo was causing the error texture to not be bound.

===================================================================

M	source/blender/gpu/intern/gpu_texture.cc

===================================================================

diff --git a/source/blender/gpu/intern/gpu_texture.cc b/source/blender/gpu/intern/gpu_texture.cc
index 3d84ca14423..e70eeece104 100644
--- a/source/blender/gpu/intern/gpu_texture.cc
+++ b/source/blender/gpu/intern/gpu_texture.cc
@@ -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:



More information about the Bf-blender-cvs mailing list