mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-21 06:46:46 -04:00
meson: add -Wfloat-conversion
This commit is contained in:
parent
2ad25b1460
commit
cf857ecf7b
31 changed files with 220 additions and 204 deletions
|
|
@ -305,10 +305,10 @@ static bool gles2_render_subtexture_with_matrix(
|
|||
glUniform1i(shader->tex, 0);
|
||||
glUniform1f(shader->alpha, alpha);
|
||||
|
||||
const GLfloat x1 = box->x / wlr_texture->width;
|
||||
const GLfloat y1 = box->y / wlr_texture->height;
|
||||
const GLfloat x2 = (box->x + box->width) / wlr_texture->width;
|
||||
const GLfloat y2 = (box->y + box->height) / wlr_texture->height;
|
||||
const GLfloat x1 = (GLfloat)(box->x / wlr_texture->width);
|
||||
const GLfloat y1 = (GLfloat)(box->y / wlr_texture->height);
|
||||
const GLfloat x2 = (GLfloat)((box->x + box->width) / wlr_texture->width);
|
||||
const GLfloat y2 = (GLfloat)((box->y + box->height) / wlr_texture->height);
|
||||
const GLfloat texcoord[] = {
|
||||
x2, y1, // top right
|
||||
x1, y1, // top left
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue