mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
st/wgl: add null pointer check for HUD texture
Fixes crash when using HUD with Nobel Clinician Viewer. Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
75d1e363ff
commit
28f6faca51
1 changed files with 3 additions and 1 deletions
|
|
@ -611,7 +611,9 @@ DrvSwapBuffers(HDC hdc)
|
|||
/* Display the HUD */
|
||||
struct pipe_resource *back =
|
||||
stw_get_framebuffer_resource(fb->stfb, ST_ATTACHMENT_BACK_LEFT);
|
||||
hud_draw(ctx->hud, back);
|
||||
if (back) {
|
||||
hud_draw(ctx->hud, back);
|
||||
}
|
||||
}
|
||||
|
||||
if (ctx->current_framebuffer == fb) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue