mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
i965: added intelFlush() call in intel_get_tex_image()
Fixes the render-to-texture test in progs/tests/getteximage.c
This commit is contained in:
parent
29c79a03a4
commit
a03b349153
1 changed files with 6 additions and 0 deletions
|
|
@ -628,6 +628,12 @@ intel_get_tex_image(GLcontext * ctx, GLenum target, GLint level,
|
|||
struct intel_context *intel = intel_context(ctx);
|
||||
struct intel_texture_image *intelImage = intel_texture_image(texImage);
|
||||
|
||||
/* If we're reading from a texture that has been rendered to, need to
|
||||
* make sure rendering is complete.
|
||||
* We could probably predicate this on texObj->_RenderToTexture
|
||||
*/
|
||||
intelFlush(ctx);
|
||||
|
||||
/* Map */
|
||||
if (intelImage->mt) {
|
||||
/* Image is stored in hardware format in a buffer managed by the
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue