[core] add getResource template to gfx::*Resource classes

This commit is contained in:
Konstantin Käfer
2019-04-02 22:47:24 +02:00
parent c02010ab6c
commit ebd8508032
20 changed files with 117 additions and 74 deletions

View File

@@ -138,7 +138,7 @@ void LineAtlas::upload(gfx::Context& context) {
gfx::TextureBinding LineAtlas::textureBinding(gfx::Context& context) {
upload(context);
return { *texture->resource, gfx::TextureFilterType::Linear, gfx::TextureMipMapType::No,
return { texture->getResource(), gfx::TextureFilterType::Linear, gfx::TextureMipMapType::No,
gfx::TextureWrapType::Repeat, gfx::TextureWrapType::Clamp };
}