Skip to content

Commit

Permalink
vulkan: fix wrong shader context being used for vertex attrib bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
rdb committed Jun 29, 2020
1 parent dd227c2 commit c47b48a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion panda/src/vulkandisplay/vulkanGraphicsStateGuardian.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2836,7 +2836,8 @@ make_pipeline(VulkanShaderContext *sc, const RenderState *state,
state->get_attrib_def(color_attr);

// Now describe each vertex attribute (ie. GeomVertexColumn).
const Shader *shader = _default_sc->get_shader();
const Shader *shader = sc->get_shader();
nassertr(shader != nullptr, VK_NULL_HANDLE);
pvector<Shader::ShaderVarSpec>::const_iterator it;

VkVertexInputAttributeDescription *attrib_desc = (VkVertexInputAttributeDescription *)
Expand Down

0 comments on commit c47b48a

Please sign in to comment.