From 194f960f91041ebee44e2745627d5e480e893d82 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 28 Oct 2016 15:21:03 +0300 Subject: [PATCH] Rearrange texture bind calls to keep them closer to where they're needed --- source/texture1d.cpp | 4 ++-- source/texture2d.cpp | 4 ++-- source/texture3d.cpp | 4 ++-- source/texturecube.cpp | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/source/texture1d.cpp b/source/texture1d.cpp index e5a496a4..ed7d8f6e 100644 --- a/source/texture1d.cpp +++ b/source/texture1d.cpp @@ -59,10 +59,10 @@ void Texture1D::image(unsigned level, PixelFormat fmt, DataType type, const void unsigned w = get_level_size(level); - BindRestore _bind(this); if(ARB_texture_storage) return sub_image(level, 0, w, fmt, type, data); + BindRestore _bind(this); glTexImage1D(target, level, ifmt, w, 0, fmt, type, data); allocated |= 1<