projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
024ecc7
)
i965: Remove useless null check.
author
Matt Turner
<mattst88@gmail.com>
Sat, 11 Apr 2015 16:54:38 +0000
(09:54 -0700)
committer
Matt Turner
<mattst88@gmail.com>
Sat, 11 Apr 2015 16:59:47 +0000
(09:59 -0700)
If it were null, we'd have just derefernced it two lines above.
src/mesa/drivers/dri/i965/brw_context.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_context.c
b/src/mesa/drivers/dri/i965/brw_context.c
index d4a7d3de7a79c46fa1cd38ed041c1aa432cfea1f..a4884edeb53957c56d5794b05e7e3d2df1d994b4 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_context.c
+++ b/
src/mesa/drivers/dri/i965/brw_context.c
@@
-925,10
+925,6
@@
intelDestroyContext(__DRIcontext * driContextPriv)
(struct brw_context *) driContextPriv->driverPrivate;
struct gl_context *ctx = &brw->ctx;
- assert(brw); /* should never be null */
- if (!brw)
- return;
-
/* Dump a final BMP in case the application doesn't call SwapBuffers */
if (INTEL_DEBUG & DEBUG_AUB) {
intel_batchbuffer_flush(brw);