projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2c6de1
)
vbo: don't check ctx->NewState twice in glBegin
author
Marek Olšák
<marek.olsak@amd.com>
Thu, 23 Jan 2020 02:32:34 +0000
(21:32 -0500)
committer
Marge Bot
<eric+marge@anholt.net>
Tue, 11 Feb 2020 00:34:57 +0000
(
00:34
+0000)
_mesa_valid_to_render does it too.
Reviewed-by: Mathias Fröhlich <mathias.froehlich@web.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3766>
src/mesa/vbo/vbo_exec_api.c
patch
|
blob
|
history
diff --git
a/src/mesa/vbo/vbo_exec_api.c
b/src/mesa/vbo/vbo_exec_api.c
index f2417b58d84e5db25ed326f6584fa467df1c4cf5..315c2759b178281a889b9a6ef2fca25cebba605f 100644
(file)
--- a/
src/mesa/vbo/vbo_exec_api.c
+++ b/
src/mesa/vbo/vbo_exec_api.c
@@
-760,9
+760,6
@@
vbo_exec_Begin(GLenum mode)
return;
}
- if (ctx->NewState)
- _mesa_update_state(ctx);
-
if (!_mesa_valid_to_render(ctx, "glBegin")) {
return;
}