Mesa (master): st/mesa: remove unneeded test for GL_TRUE
Brian Paul
brianp at kemper.freedesktop.org
Fri Jun 17 19:45:18 UTC 2011
Module: Mesa
Branch: master
Commit: da5c852d636dfeffeb792c78b882c80c91ab6a89
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=da5c852d636dfeffeb792c78b882c80c91ab6a89
Author: Brian Paul <brianp at vmware.com>
Date: Fri Jun 17 13:28:38 2011 -0600
st/mesa: remove unneeded test for GL_TRUE
---
src/mesa/state_tracker/st_format.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c
index 99f486b..45e4766 100644
--- a/src/mesa/state_tracker/st_format.c
+++ b/src/mesa/state_tracker/st_format.c
@@ -1203,7 +1203,7 @@ st_ChooseTextureFormat_renderable(struct gl_context *ctx, GLint internalFormat,
* that in advance. Specify potential render target flags now.
*/
bindings = PIPE_BIND_SAMPLER_VIEW;
- if (renderable == GL_TRUE) {
+ if (renderable) {
if (_mesa_is_depth_or_stencil_format(internalFormat))
bindings |= PIPE_BIND_DEPTH_STENCIL;
else
More information about the mesa-commit
mailing list