From affde05dc07a94643f1fd2751b2b441f57f73d7d Mon Sep 17 00:00:00 2001 From: xolatile Date: Tue, 5 Aug 2025 17:04:48 +0200 Subject: Minor cleanups, just compiles... --- src/engine/octaedit.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/engine/octaedit.cpp') diff --git a/src/engine/octaedit.cpp b/src/engine/octaedit.cpp index af8e9ec..fb37088 100644 --- a/src/engine/octaedit.cpp +++ b/src/engine/octaedit.cpp @@ -2522,14 +2522,12 @@ void rendertexturepanel(int w, int h) { VSlot &vslot = lookupvslot(texmru[ti]), *layer = NULL; Slot &slot = *vslot.slot; - Texture *tex = slot.sts.empty() ? notexture : slot.sts[0].t, *layertex = NULL; + Texture *tex = slot.sts.empty() ? notexture : slot.sts[0].t; if(vslot.layer) { layer = &lookupvslot(vslot.layer); - layertex = layer->slot->sts.empty() ? notexture : layer->slot->sts[0].t; } float sx = min(1.0f, tex->xs/(float)tex->ys), sy = min(1.0f, tex->ys/(float)tex->xs); - int x = w*1800/h-s-50, r = s; vec2 tc[4] = { vec2(0, 0), vec2(1, 0), vec2(1, 1), vec2(0, 1) }; float xoff = vslot.offset.x, yoff = vslot.offset.y; if(vslot.rotation) -- cgit v1.2.3