projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
831fb29
)
egl/gbm: Fix compiler warning about visual matching.
author
Eric Anholt
<eric@anholt.net>
Sat, 10 Feb 2018 16:32:57 +0000
(16:32 +0000)
committer
Daniel Stone
<daniels@collabora.com>
Mon, 12 Feb 2018 09:16:44 +0000
(09:16 +0000)
The compiler doesn't know that num_visuals > 0.
Fixes: 37a8d907cc16 ("egl/gbm: Ensure EGLConfigs match GBM surface format")
Reviewed-by: Daniel Stone <daniels@collabora.com>
src/egl/drivers/dri2/platform_drm.c
patch
|
blob
|
history
diff --git
a/src/egl/drivers/dri2/platform_drm.c
b/src/egl/drivers/dri2/platform_drm.c
index 3eabd678e92e7cfa4a7b44aba85b7231fb5db97c..01fa1f11b95367ad179aad298dab3f20291dffef 100644
(file)
--- a/
src/egl/drivers/dri2/platform_drm.c
+++ b/
src/egl/drivers/dri2/platform_drm.c
@@
-95,7
+95,7
@@
dri2_drm_config_is_compatible(struct dri2_egl_display *dri2_dpy,
const __DRIconfig *config,
struct gbm_surface *surface)
{
- const struct gbm_dri_visual *visual;
+ const struct gbm_dri_visual *visual
= NULL
;
unsigned int red, green, blue, alpha;
int i;