summaryrefslogtreecommitdiff
path: root/video.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'video.cpp')
-rw-r--r--video.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/video.cpp b/video.cpp
index abcf47d..b8b3f51 100644
--- a/video.cpp
+++ b/video.cpp
@@ -2049,6 +2049,7 @@ Texture_Id Device::get_depth_target() {
}
Texture& Device::get_texture(Texture_Id id) {
+ assert(id.index);
return ((Device_Vk*)this)->textures[id];
}