OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6064810
)
meta: add 'f' suffix to floats to silence some MSVC warnings
author
Brian Paul
<brianp@vmware.com>
Wed, 16 Jan 2013 15:25:43 +0000
(08:25 -0700)
committer
Brian Paul
<brianp@vmware.com>
Thu, 17 Jan 2013 00:06:17 +0000
(17:06 -0700)
src/mesa/drivers/common/meta.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/common/meta.c
b/src/mesa/drivers/common/meta.c
index
e25481e
..
4e32b50
100644
(file)
--- a/
src/mesa/drivers/common/meta.c
+++ b/
src/mesa/drivers/common/meta.c
@@
-4126,7
+4126,7
@@
_mesa_meta_DrawTex(struct gl_context *ctx, GLfloat x, GLfloat y, GLfloat z,
const GLfloat x1 = x + width;
const GLfloat y1 = y + height;
- z = CLAMP(z, 0.0
, 1.0
);
+ z = CLAMP(z, 0.0
f, 1.0f
);
z = invert_z(z);
verts[0].x = x;