Ensure texture exists in 2d view
This commit is contained in:
@@ -853,6 +853,7 @@ class UISidebar {
|
||||
if (UIView2D.inst.type != type) UIView2D.inst.show = true;
|
||||
else UIView2D.inst.show = !UIView2D.inst.show;
|
||||
UIView2D.inst.type = type;
|
||||
UIView2D.inst.hwnd.redraws = 2;
|
||||
App.resize();
|
||||
}
|
||||
|
||||
|
||||
@@ -126,15 +126,14 @@ class UIView2D {
|
||||
var th = tw;
|
||||
if (tex != null) {
|
||||
th = tw * (tex.height / tex.width);
|
||||
}
|
||||
|
||||
if (type == View2DLayer) {
|
||||
ui.g.pipeline = pipe;
|
||||
drawLayer(tex, tx, ty, tw, th, channel);
|
||||
ui.g.pipeline = null;
|
||||
}
|
||||
else {
|
||||
ui.g.drawScaledImage(tex, tx, ty, tw, th);
|
||||
if (type == View2DLayer) {
|
||||
ui.g.pipeline = pipe;
|
||||
drawLayer(tex, tx, ty, tw, th, channel);
|
||||
ui.g.pipeline = null;
|
||||
}
|
||||
else {
|
||||
ui.g.drawScaledImage(tex, tx, ty, tw, th);
|
||||
}
|
||||
}
|
||||
|
||||
// UV map
|
||||
|
||||
Reference in New Issue
Block a user