summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/OGLPipeline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoBackends/OGL/OGLPipeline.cpp')
-rw-r--r--Source/Core/VideoBackends/OGL/OGLPipeline.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/Core/VideoBackends/OGL/OGLPipeline.cpp b/Source/Core/VideoBackends/OGL/OGLPipeline.cpp
index 9d93381d46..bd439898db 100644
--- a/Source/Core/VideoBackends/OGL/OGLPipeline.cpp
+++ b/Source/Core/VideoBackends/OGL/OGLPipeline.cpp
@@ -46,10 +46,11 @@ OGLPipeline::~OGLPipeline()
std::unique_ptr<OGLPipeline> OGLPipeline::Create(const AbstractPipelineConfig& config)
{
- const PipelineProgram* program =
- ProgramShaderCache::GetPipelineProgram(static_cast<const OGLShader*>(config.vertex_shader),
- static_cast<const OGLShader*>(config.geometry_shader),
- static_cast<const OGLShader*>(config.pixel_shader));
+ const PipelineProgram* program = ProgramShaderCache::GetPipelineProgram(
+ static_cast<const GLVertexFormat*>(config.vertex_format),
+ static_cast<const OGLShader*>(config.vertex_shader),
+ static_cast<const OGLShader*>(config.geometry_shader),
+ static_cast<const OGLShader*>(config.pixel_shader));
if (!program)
return nullptr;