[shader] bind() is now a pure virtual

- Shader::bind() now receives a GLbyte*
- BUFFER_OFFSET now uses GLbyte
This commit is contained in:
Bruno de Oliveira Abinader
2015-09-10 14:46:38 +03:00
parent 8d6b9696bf
commit 2156aa35ca
36 changed files with 65 additions and 62 deletions

View File

@@ -16,7 +16,7 @@ void Painter::drawClippingMasks(const std::set<Source*>& sources) {
config.colorMask = { false, false, false, false };
config.depthRange = { 1.0f, 1.0f };
coveringPlainArray.bind(*plainShader, tileStencilBuffer, BUFFER_OFFSET(0));
coveringPlainArray.bind(*plainShader, tileStencilBuffer, BUFFER_OFFSET_0);
for (const auto& source : sources) {
source->drawClippingMasks(*this);