[Bf-blender-cvs] [75424b296d1] master: Cleanup: comment on `GPU_pass_compile`.

mano-wii noreply at git.blender.org
Tue Mar 12 18:30:25 CET 2019


Commit: 75424b296d18499582c7dbb992f24ca74c2c990f
Author: mano-wii
Date:   Tue Mar 12 14:28:57 2019 -0300
Branches: master
https://developer.blender.org/rB75424b296d18499582c7dbb992f24ca74c2c990f

Cleanup: comment on `GPU_pass_compile`.

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

M	source/blender/gpu/intern/gpu_codegen.c

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

diff --git a/source/blender/gpu/intern/gpu_codegen.c b/source/blender/gpu/intern/gpu_codegen.c
index 63105fa96e2..eb6c0c6cc5e 100644
--- a/source/blender/gpu/intern/gpu_codegen.c
+++ b/source/blender/gpu/intern/gpu_codegen.c
@@ -1979,8 +1979,8 @@ void GPU_pass_compile(GPUPass *pass, const char *shname)
 			pass->shader = NULL;
 		}
 		else if (!BLI_thread_is_main()) {
-			/* For some drivers, you must use the program at least once in the
-			 * rendering context that it is created. */
+			/* For some Intel drivers, you must use the program at least once
+			 * in the rendering context that it is linked. */
 			glUseProgram(GPU_shader_get_program(pass->shader));
 			glUseProgram(0);
 		}



More information about the Bf-blender-cvs mailing list