Fix glUseShader not marking the state for update