Check for heap == NULL before driSetTextureSwapCounterLocation.
This commit is contained in:
parent
2eb9e67a5a
commit
eba5b610b9
|
@ -379,6 +379,9 @@ savageCreateContext( const __GLcontextModes *mesaVis,
|
|||
&imesa->swapped,
|
||||
sizeof( savageTexObj ),
|
||||
(destroy_texture_object_t *) savageDestroyTexObj );
|
||||
/* If textureSize[i] == 0 textureHeaps[i] is NULL. This can happen
|
||||
* if there is not enough card memory for a card texture heap. */
|
||||
if (imesa->textureHeaps[i])
|
||||
driSetTextureSwapCounterLocation( imesa->textureHeaps[i],
|
||||
& imesa->c_textureSwaps );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue