ignore UIScale for reading raw image pixels
This commit is contained in:
parent
2970972456
commit
609739e153
|
@ -365,7 +365,7 @@ public class CurveRenderState {
|
||||||
{
|
{
|
||||||
if(gradientTexture == 0)
|
if(gradientTexture == 0)
|
||||||
{
|
{
|
||||||
Image slider = GameImage.SLIDER_GRADIENT.getImage();
|
Image slider = GameImage.SLIDER_GRADIENT.getImage().getScaledCopy(1.0f/GameImage.getUIscale());
|
||||||
staticState.gradientTexture = GL11.glGenTextures();
|
staticState.gradientTexture = GL11.glGenTextures();
|
||||||
ByteBuffer buff = BufferUtils.createByteBuffer(slider.getWidth()*4);
|
ByteBuffer buff = BufferUtils.createByteBuffer(slider.getWidth()*4);
|
||||||
for(int i=0 ; i< slider.getWidth(); ++i)
|
for(int i=0 ; i< slider.getWidth(); ++i)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user