st/mesa: expand glDrawPixels cache to handle multiple images
The newest version of WSI Fusion makes several glDrawPixels calls per frame. By caching more than one image, we get better performance when panning/zooming the map. v2: move pixel unpack param checking out of cache search loop, per Roland v3: also move unpack->BufferObj check out of loop, per Roland.
This commit is contained in:
@@ -273,10 +273,6 @@ st_destroy_context_priv(struct st_context *st, bool destroy_pipe)
|
||||
}
|
||||
}
|
||||
|
||||
/* free glDrawPixels cache data */
|
||||
free(st->drawpix_cache.image);
|
||||
pipe_resource_reference(&st->drawpix_cache.texture, NULL);
|
||||
|
||||
/* free glReadPixels cache data */
|
||||
st_invalidate_readpix_cache(st);
|
||||
|
||||
|
Reference in New Issue
Block a user