Reset attribute configuration on shader program change

This commit is contained in:
fincs 2017-02-09 19:58:05 +01:00
parent a91889f5ba
commit 7a55e4554a

View File

@ -332,7 +332,7 @@ void C3D_BindProgram(shaderProgram_s* program)
if (oldProg != program) if (oldProg != program)
{ {
ctx->program = program; ctx->program = program;
ctx->flags |= C3DiF_Program; ctx->flags |= C3DiF_Program | C3DiF_AttrInfo;
if (oldProg) if (oldProg)
{ {