summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/OGLPipeline.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2018-02-25 17:56:09 +1000
committerStenzek <stenzek@gmail.com>2018-03-10 15:56:34 +1000
commitf9c829c7f711efadea1db7aabb51c703380fa03a (patch)
treecc645756b893e4c994360ec362977aaa9e5ad51f /Source/Core/VideoBackends/OGL/OGLPipeline.cpp
parentdec0c3bce85ceda89ea05f00b94aad00e675598d (diff)
OGL: Re-implement async shader compiling
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;