projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e70d0d2
)
mesa: fold always true conditional
author
Emil Velikov
<emil.velikov@collabora.com>
Fri, 11 Nov 2016 16:43:28 +0000
(16:43 +0000)
committer
Emil Velikov
<emil.l.velikov@gmail.com>
Mon, 21 Nov 2016 14:46:40 +0000
(14:46 +0000)
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/context.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/context.c
b/src/mesa/main/context.c
index 80bee16d453411e6ae48438d7bde0e3f3e30aa13..bd4551e2e53fdccac46d943f89521760480e8565 100644
(file)
--- a/
src/mesa/main/context.c
+++ b/
src/mesa/main/context.c
@@
-1696,10
+1696,8
@@
_mesa_make_current( struct gl_context *newCtx,
*/
newCtx->NewState |= _NEW_BUFFERS;
- if (drawBuffer) {
- _mesa_check_init_viewport(newCtx,
- drawBuffer->Width, drawBuffer->Height);
- }
+ _mesa_check_init_viewport(newCtx,
+ drawBuffer->Width, drawBuffer->Height);
}
if (newCtx->FirstTimeCurrent) {