Silent -Wdouble-promotion warning
Change-Id: I44ba34365818adf6b9af022e4bf4ae9e02c3511a Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
parent
8ad8a5ddec
commit
f4ab0ab624
|
@ -517,8 +517,8 @@ Texture::Texture(Atlas *atlas, const QRect &textureRect, const QImage &image)
|
|||
, m_nonatlas_texture(nullptr)
|
||||
, m_has_alpha(image.hasAlphaChannel())
|
||||
{
|
||||
float w = atlas->size().width();
|
||||
float h = atlas->size().height();
|
||||
qreal w = atlas->size().width();
|
||||
qreal h = atlas->size().height();
|
||||
QRect nopad = atlasSubRectWithoutPadding();
|
||||
m_texture_coords_rect = QRectF(nopad.x() / w,
|
||||
nopad.y() / h,
|
||||
|
|
Loading…
Reference in New Issue