[cairo] [PATCH] gl: Remove the shader language version abstraction
Martin Robinson
mrobinson at igalia.com
Fri Aug 17 14:24:25 PDT 2012
On 08/17/2012 01:33 PM, Behdad Esfahbod wrote:
> On 08/17/2012 03:44 PM, Martin Robinson wrote:
>> void
>> _cairo_gl_shader_bind_matrix (cairo_gl_context_t *ctx,
>> const char *name, cairo_matrix_t* m)
>> {
>> - ctx->shader_impl->bind_matrix (ctx, ctx->current_shader, name, m);
>> + cairo_gl_dispatch_t *dispatch = &ctx->dispatch;
>> + GLint location = dispatch->GetUniformLocation (ctx->current_shader->program,
>> + name);
>> + float gl_m[16] = {
>
> s/16/9/
Yeah, I agree. It looks like I didn't notice this pre-existing bug when
I moved the code.
--Martin
More information about the cairo
mailing list