Neil Roberts
89286f6a47
cogl-material: Always reset the GLSL program to zero when flushing
...
When flushing a fixed-function or arbfp material it would always call
disable_glsl to try to get rid of the previous GLSL shader. This is
needed even if current_use_program_type is not GLSL because if an
application calls cogl_program_uniform then Cogl will have to bind the
program to set the uniform. If this happens then it won't update
current_use_program_type presumably because the enabled state of arbfp
is still valid.
The problem was that disable_glsl would only select program zero when
the current_use_program_type is set to GLSL which wouldn't be the case
if cogl_program_uniform was called. This patch changes it to just
directly call _cogl_gl_use_program_wrapper(0) instead of having a
separate disable_glsl function. The current program is cached in the
cogl context anyway so it shouldn't cause any extra unnecessary GL
calls.
http://bugzilla.clutter-project.org/show_bug.cgi?id=2232
2010-07-22 17:50:56 +01:00
..
2010-07-15 17:27:15 +01:00
2010-07-01 20:39:57 +01:00
2010-07-13 19:26:58 +01:00
2010-07-15 17:24:01 +01:00
2010-07-15 17:24:01 +01:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-07-15 17:24:01 +01:00
2010-07-15 17:25:36 +01:00
2010-07-15 17:27:15 +01:00
2010-07-15 17:27:15 +01:00
2010-07-13 14:28:45 +01:00
2010-05-24 16:10:56 +01:00
2010-05-24 16:10:56 +01:00
2010-06-15 15:26:27 +01:00
2010-06-15 15:26:27 +01:00
2010-07-07 14:08:11 +01:00
2010-07-07 14:08:11 +01:00
2010-07-07 14:08:11 +01:00
2010-07-09 18:57:54 +01:00
2010-06-01 12:20:59 +01:00
2010-07-07 14:41:54 +01:00
2010-04-15 14:51:01 +01:00
2010-06-15 15:26:27 +01:00
2010-06-15 15:26:27 +01:00
2010-06-15 15:26:27 +01:00
2010-07-13 19:26:58 +01:00
2010-07-08 16:34:30 +01:00
2010-07-15 17:27:15 +01:00
2010-07-15 17:27:15 +01:00
2010-07-13 14:28:51 +01:00
2010-03-01 12:56:10 +00:00
2009-10-16 18:58:50 +01:00
2009-10-16 18:58:50 +01:00
2010-06-22 12:22:43 +01:00
2010-06-22 12:22:43 +01:00
2010-03-01 12:56:10 +00:00
2010-06-01 12:08:18 +01:00
2010-07-07 14:41:54 +01:00
2010-07-09 18:57:54 +01:00
2010-06-04 14:44:15 +01:00
2010-06-22 12:20:59 +01:00
2010-06-15 15:26:27 +01:00
2010-07-13 19:26:58 +01:00
2010-06-30 15:04:10 +01:00
2010-07-18 11:01:05 +01:00
2010-06-30 15:04:10 +01:00
2010-07-13 19:26:58 +01:00
2010-06-30 15:04:10 +01:00
2010-07-05 14:50:47 +01:00
2010-07-13 19:26:58 +01:00
2010-07-22 17:50:56 +01:00
2010-07-13 19:26:58 +01:00
2010-07-20 17:21:12 +01:00
2010-07-13 14:29:07 +01:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-06-09 15:19:31 +01:00
2010-06-09 15:19:31 +01:00
2010-07-09 18:57:54 +01:00
2010-06-04 14:44:15 +01:00
2010-06-04 14:44:15 +01:00
2010-03-01 12:56:10 +00:00
2010-06-29 20:37:14 +01:00
2010-07-13 19:26:58 +01:00
2010-06-29 20:37:14 +01:00
2010-07-07 14:08:11 +01:00
2010-07-07 14:08:11 +01:00
2010-07-05 15:20:04 +01:00
2010-07-13 19:26:58 +01:00
2010-03-25 09:33:26 +00:00
2010-01-08 20:19:50 +00:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-03-01 12:56:10 +00:00
2010-07-13 14:29:07 +01:00
2010-07-15 17:24:01 +01:00
2010-07-15 17:24:01 +01:00
2010-07-15 17:24:01 +01:00
2010-07-15 17:24:01 +01:00
2010-07-15 17:24:01 +01:00
2010-07-15 17:24:01 +01:00
2010-07-13 14:28:52 +01:00
2010-07-13 14:28:52 +01:00
2010-07-15 17:24:01 +01:00
2010-07-15 17:24:01 +01:00
2010-07-15 17:24:01 +01:00
2010-07-15 17:27:15 +01:00
2010-03-01 12:56:10 +00:00
2010-07-13 14:28:52 +01:00
2010-06-04 14:44:15 +01:00
2010-07-13 14:28:35 +01:00
2010-05-20 17:18:24 +01:00
2010-06-30 18:51:31 +01:00
2010-03-01 12:56:10 +00:00
2010-07-13 19:26:58 +01:00
2010-07-09 18:57:54 +01:00
2010-07-15 17:24:01 +01:00
2010-07-13 14:28:52 +01:00
2009-10-16 18:58:50 +01:00
2010-07-13 19:26:58 +01:00
2010-03-03 17:02:51 +00:00