forked from AuroraMiddleware/gtk
gsk/gl: check for format as well
This could potentially happen if a uniform had never been set.
This commit is contained in:
parent
a66a0dde81
commit
2efc1729e2
@ -282,7 +282,7 @@ snapshot_uniforms (GskGLUniformState *state,
|
|||||||
{
|
{
|
||||||
const GskGLUniformMapping *mapping = &program->mappings[i];
|
const GskGLUniformMapping *mapping = &program->mappings[i];
|
||||||
|
|
||||||
if (!mapping->info.initial && mapping->location > -1)
|
if (!mapping->info.initial && mapping->info.format && mapping->location > -1)
|
||||||
{
|
{
|
||||||
uniform[count].location = mapping->location;
|
uniform[count].location = mapping->location;
|
||||||
uniform[count].info = mapping->info;
|
uniform[count].info = mapping->info;
|
||||||
|
Loading…
Reference in New Issue
Block a user