[core] refactor program object creation

This commit is contained in:
Konstantin Käfer
2019-04-02 14:11:37 +02:00
parent 33ee7e23de
commit 7f9274035b
67 changed files with 216 additions and 178 deletions

View File

@@ -29,8 +29,8 @@ constexpr const uint8_t ShaderSource<CircleProgram>::hash[8];
namespace gfx {
template <>
std::unique_ptr<Program<CircleProgram>>
Context::createProgram<gl::Context>(const ProgramParameters& programParameters) {
std::unique_ptr<gfx::Program<CircleProgram>>
Backend::Create<gfx::Backend::Type::OpenGL>(const ProgramParameters& programParameters) {
return std::make_unique<gl::Program<CircleProgram>>(programParameters);
}