aboutsummaryrefslogtreecommitdiff
path: root/src/texture_buffer.h
diff options
context:
space:
mode:
authorAdrian Kummerlaender2018-05-21 21:16:56 +0200
committerAdrian Kummerlaender2018-05-21 21:20:08 +0200
commit617fec827652d216e2d1e5015f816c4400655d73 (patch)
treec2bdce2d375bebc4b7c9907543d57aeb642f7f82 /src/texture_buffer.h
parenta8feed9d7951c9a947562ed687c704851a31ea9b (diff)
downloadcomputicle-617fec827652d216e2d1e5015f816c4400655d73.tar
computicle-617fec827652d216e2d1e5015f816c4400655d73.tar.gz
computicle-617fec827652d216e2d1e5015f816c4400655d73.tar.bz2
computicle-617fec827652d216e2d1e5015f816c4400655d73.tar.lz
computicle-617fec827652d216e2d1e5015f816c4400655d73.tar.xz
computicle-617fec827652d216e2d1e5015f816c4400655d73.tar.zst
computicle-617fec827652d216e2d1e5015f816c4400655d73.zip
Abstract texture display buffer, shader
Diffstat (limited to 'src/texture_buffer.h')
-rw-r--r--src/texture_buffer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/texture_buffer.h b/src/texture_buffer.h
index d6cce53..8afe240 100644
--- a/src/texture_buffer.h
+++ b/src/texture_buffer.h
@@ -17,7 +17,7 @@ public:
}
};
- Guard use() {
+ Guard use() const {
return Guard(_id);
}
@@ -42,7 +42,7 @@ public:
glDeleteFramebuffers(1, &_id);
}
- void resize(std::size_t width, std::size_t height) {
+ void resize(std::size_t width, std::size_t height) const {
auto guard = use();
glViewport(0, 0, width, height);