mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
OGL: Re-implement async shader compiling
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user