# Gui.set\_size cause a problem/glitch with texture on GUI (SOLVED)

**URL:** <https://forum.defold.com/t/gui-set-size-cause-a-problem-glitch-with-texture-on-gui-solved/29290>\
**Category:** Questions\
**Created:** [September 14, 2018, 10:44am UTC](https://forum.defold.com/t/gui-set-size-cause-a-problem-glitch-with-texture-on-gui-solved/29290 "2018-09-14T10:44:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![selimanac](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/selimanac/32/6397_2.png) [@selimanac](https://forum.defold.com/u/selimanac)\
**Post date:** [September 14, 2018, 10:44am UTC](https://forum.defold.com/t/gui-set-size-cause-a-problem-glitch-with-texture-on-gui-solved/29290/1 "2018-09-14T10:44:57Z")

</div>

I have a problem with simple progress bar. It behave kind a strange when it gets smaller.  
Hard to explain, so I added the video and a simple project below.  
Basically it is a texture from atlas with extrude borders. It has slice 9(but I try it without slice too). When I set its size smaller than 30, it start to kind a fade or blend in background.

Is this a bug, am I doing something wrong, is this about material or the compression/samplers?

[progress-bar.zip](https://forum-defold-uploads.b-cdn.net/original/2X/d/d14a3580ff4098a4b82182c835ca0ba08e0bbdd5.zip) (52.4 KB)

[https://forum-defold-uploads.b-cdn.net/original/2X/b/b0f93706b842d14be3450446ff69c38c25cfe552.mov](https://forum-defold-uploads.b-cdn.net/original/2X/b/b0f93706b842d14be3450446ff69c38c25cfe552.mov)

![progress_bar_1](https://forum-defold-uploads.b-cdn.net/original/2X/7/74c2f09a305abe9f99e97daa09ed208c21381278.png)  
 ![progress_bar_2](https://forum-defold-uploads.b-cdn.net/original/2X/a/a42bcb4bf820b96076b37444df05d06694bd7ff9.png)

 ![26](https://forum-defold-uploads.b-cdn.net/original/2X/f/f936be9321ec354567bdf9aac233cffd229b0a7e.png)

---

<div class="post-metadata">

**Author:** ![selimanac](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/selimanac/32/6397_2.png) [@selimanac](https://forum.defold.com/u/selimanac)\
**Post date:** [September 14, 2018, 10:54am UTC](https://forum.defold.com/t/gui-set-size-cause-a-problem-glitch-with-texture-on-gui-solved/29290/2 "2018-09-14T10:54:03Z")

</div>

Looks like Mipmaps cause this. When I turn mipmaps off it works just as I expected.  
~~Is there a way of disabling mipmaps just for GUI?~~  
I found it: [Texture profiles in Defold](https://www.defold.com/manuals/texture-profiles/#_path_settings)
