History

Fixed compilation with new shader system

Olivier Prat committed 8 years ago

Commit 49549ce1 parent 3911ce531 files · +292 −300Browse files

Showing the changes to libraries/render-utils/src/AnimDebugDraw.cpp (1 of 31 files). Show all

Unified · Split

libraries/render-utils/src/AnimDebugDraw.cpp+2−2
@@ -102,8 +102,8 @@ AnimDebugDraw::AnimDebugDraw() : · 101 unmodified lines
102 state->setBlendFunction(false, gpu::State::SRC_ALPHA, gpu::State::BLEND_OP_ADD,102 state->setBlendFunction(false, gpu::State::SRC_ALPHA, gpu::State::BLEND_OP_ADD,
103 gpu::State::INV_SRC_ALPHA, gpu::State::FACTOR_ALPHA,103 gpu::State::INV_SRC_ALPHA, gpu::State::FACTOR_ALPHA,
104 gpu::State::BLEND_OP_ADD, gpu::State::ONE);104 gpu::State::BLEND_OP_ADD, gpu::State::ONE);
105 auto vertShader = gpu::Shader::createVertex(std::string(animdebugdraw_vert));105 auto vertShader = animdebugdraw_vert::getShader();
106 auto fragShader = gpu::Shader::createPixel(std::string(animdebugdraw_frag));106 auto fragShader = animdebugdraw_frag::getShader();
107 auto program = gpu::Shader::createProgram(vertShader, fragShader);107 auto program = gpu::Shader::createProgram(vertShader, fragShader);
108 _pipeline = gpu::Pipeline::create(program, state);108 _pipeline = gpu::Pipeline::create(program, state);
109 109