mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-31 09:10:32 +01:00
st/egl: fix uninitialized pointer bug
If no format is matched in the loop the value of xconf was undefined. NOTE: This is a candidate for the 8.0 branch.
This commit is contained in:
parent
2f92a9f721
commit
fe2a7b7e7f
1 changed files with 1 additions and 1 deletions
|
|
@ -455,7 +455,7 @@ ximage_display_copy_to_pixmap(struct native_display *ndpy,
|
|||
if (src->bind & PIPE_BIND_DISPLAY_TARGET) {
|
||||
struct ximage_display *xdpy = ximage_display(ndpy);
|
||||
enum pipe_format fmt = get_pixmap_format(&xdpy->base, pix);
|
||||
const struct ximage_config *xconf;
|
||||
const struct ximage_config *xconf = NULL;
|
||||
struct xlib_drawable xdraw;
|
||||
int i;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue