projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5bf231
)
r300g: Abort if draw_create() fails
author
nobled
<nobled@dreamwidth.org>
Thu, 2 Dec 2010 22:49:05 +0000
(22:49 +0000)
committer
Marek Olšák
<maraeo@gmail.com>
Thu, 2 Dec 2010 23:50:58 +0000
(
00:50
+0100)
The other drivers need to be updated to do this, too.
src/gallium/drivers/r300/r300_context.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r300/r300_context.c
b/src/gallium/drivers/r300/r300_context.c
index f1c73345781a6d92709d2dd5401d82926132cfee..9589a491b81db7504b2c0fda045b588fb65f9ecc 100644
(file)
--- a/
src/gallium/drivers/r300/r300_context.c
+++ b/
src/gallium/drivers/r300/r300_context.c
@@
-441,6
+441,8
@@
struct pipe_context* r300_create_context(struct pipe_screen* screen,
if (!r300screen->caps.has_tcl) {
/* Create a Draw. This is used for SW TCL. */
r300->draw = draw_create(&r300->context);
+ if (r300->draw == NULL)
+ goto fail;
/* Enable our renderer. */
draw_set_rasterize_stage(r300->draw, r300_draw_stage(r300));
/* Disable converting points/lines to triangles. */