projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49289f1
)
nouveau: nv30: Check for NULL front (happens with DRI2)
author
Patrice Mandin
<patmandin@gmail.com>
Tue, 17 Nov 2009 18:50:37 +0000
(19:50 +0100)
committer
Patrice Mandin
<patmandin@gmail.com>
Tue, 17 Nov 2009 18:50:37 +0000
(19:50 +0100)
src/gallium/drivers/nv30/nv30_screen.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/nv30/nv30_screen.c
b/src/gallium/drivers/nv30/nv30_screen.c
index 221ae1b5f88eef502cc75d0dbe03c2393610a250..7cd36902eb489f04bf4a76de03cae8b29768c273 100644
(file)
--- a/
src/gallium/drivers/nv30/nv30_screen.c
+++ b/
src/gallium/drivers/nv30/nv30_screen.c
@@
-116,7
+116,10
@@
nv30_screen_surface_format_supported(struct pipe_screen *pscreen,
case PIPE_FORMAT_Z24X8_UNORM:
return TRUE;
case PIPE_FORMAT_Z16_UNORM:
- return (front->format == PIPE_FORMAT_R5G6B5_UNORM);
+ if (front) {
+ return (front->format == PIPE_FORMAT_R5G6B5_UNORM);
+ }
+ return TRUE;
default:
break;
}