mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-23 01:50:24 +01:00
i965: fix screen depth test in intel_validate_framebuffer)_
front_region may be null.
This commit is contained in:
parent
20f49252e1
commit
ee41bb2ed0
1 changed files with 2 additions and 1 deletions
|
|
@ -653,7 +653,8 @@ intel_validate_framebuffer(GLcontext *ctx, struct gl_framebuffer *fb)
|
|||
* screen depth. There currently seems to be a problem when
|
||||
* rendering into a rgb565 texture when the screen is abgr8888.
|
||||
*/
|
||||
if (intel->front_region->cpp == 4)
|
||||
|
||||
if (intel->ctx.Visual.rgbBits >= 24)
|
||||
supportedFormat = &_mesa_texformat_argb8888;
|
||||
else
|
||||
supportedFormat = &_mesa_texformat_rgb565;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue