mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-23 21:38:18 +02:00
st/dri: Fix segmentation fault in sw drivers
This commit is contained in:
parent
d3758feb6b
commit
5270deaab6
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue