aboutsummaryrefslogtreecommitdiff
path: root/src/texture_buffer.h
diff options
context:
space:
mode:
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);