diff options
author | Lubomir Rintel <[email protected]> | 2014-05-28 08:56:12 +0200 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2014-05-30 17:10:08 -0700 |
commit | 90b5747856dd116e1a7e0fd4a93781400f276c3e (patch) | |
tree | 83a45b299163b9ce15276644b9033d3e7dd582d0 /src/gallium | |
parent | 7b1aeec9cd8c9b790d452eaf769ccbce51627908 (diff) |
i915: add a missing NULL pointer check
mesaVisual can be NULL with configless context since this commit:
commit 551d459af421a2eb937e9e16301bb64da4624f89
Author: Neil Roberts <[email protected]>
Date: Fri Mar 7 18:05:47 2014 +0000
Add the EGL_MESA_configless_context extension
...
Previously the i965 and i915 drivers were explicitly creating a zeroed visual
whenever 0 is passed for the EGLConfig.
We attempt to dereference the visual in i915 and now we don't create a
zeroed-out one one it crashes, breaking at least weston in an i915. There's
no point in doing so as it would be zero anyway.
v2: Fixed a typo in commit message. Added some tags.
Signed-off-by: Lubomir Rintel <[email protected]>
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1100967
Cc: "10.2" <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/gallium')
0 files changed, 0 insertions, 0 deletions