projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3758fe
)
st/dri: Fix segmentation fault in sw drivers
author
nobled
<nobled@dreamwidth.org>
Wed, 11 Aug 2010 20:36:52 +0000
(23:36 +0300)
committer
George Sapountzis
<gsapountzis@gmail.com>
Fri, 13 Aug 2010 19:57:26 +0000
(22:57 +0300)
src/gallium/state_trackers/dri/sw/drisw.c
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/dri/sw/drisw.c
b/src/gallium/state_trackers/dri/sw/drisw.c
index ae96f1b20e283edd766745666cf370cb3a88b9b4..249ccd7fcf67f1d6b4b635f2702960a390e5a1f8 100644
(file)
--- a/
src/gallium/state_trackers/dri/sw/drisw.c
+++ b/
src/gallium/state_trackers/dri/sw/drisw.c
@@
-201,7
+201,7
@@
drisw_allocate_textures(struct dri_drawable *drawable,
struct pipe_resource templ;
unsigned width, height;
boolean resized;
-
int
i;
+
unsigned
i;
width = drawable->dPriv->w;
height = drawable->dPriv->h;
@@
-222,7
+222,7
@@
drisw_allocate_textures(struct dri_drawable *drawable,
templ.depth0 = 1;
templ.last_level = 0;
- for (i = 0; i <
ST_ATTACHMENT_COUNT
; i++) {
+ for (i = 0; i <
count
; i++) {
enum pipe_format format;
unsigned bind;