simple-egl: Remove leftover wl_visual variable
This commit is contained in:
@@ -35,7 +35,6 @@
|
|||||||
|
|
||||||
struct display {
|
struct display {
|
||||||
struct wl_display *display;
|
struct wl_display *display;
|
||||||
struct wl_visual *premultiplied_argb_visual;
|
|
||||||
struct wl_compositor *compositor;
|
struct wl_compositor *compositor;
|
||||||
struct wl_shell *shell;
|
struct wl_shell *shell;
|
||||||
struct {
|
struct {
|
||||||
@@ -192,7 +191,6 @@ static void
|
|||||||
create_surface(struct window *window)
|
create_surface(struct window *window)
|
||||||
{
|
{
|
||||||
struct display *display = window->display;
|
struct display *display = window->display;
|
||||||
struct wl_visual *visual;
|
|
||||||
EGLBoolean ret;
|
EGLBoolean ret;
|
||||||
static const EGLint surface_attribs[] = {
|
static const EGLint surface_attribs[] = {
|
||||||
EGL_ALPHA_FORMAT, EGL_ALPHA_FORMAT_PRE,
|
EGL_ALPHA_FORMAT, EGL_ALPHA_FORMAT_PRE,
|
||||||
@@ -200,7 +198,6 @@ create_surface(struct window *window)
|
|||||||
};
|
};
|
||||||
|
|
||||||
window->surface = wl_compositor_create_surface(display->compositor);
|
window->surface = wl_compositor_create_surface(display->compositor);
|
||||||
visual = display->premultiplied_argb_visual;
|
|
||||||
window->native =
|
window->native =
|
||||||
wl_egl_window_create(window->surface,
|
wl_egl_window_create(window->surface,
|
||||||
window->geometry.width,
|
window->geometry.width,
|
||||||
|
|||||||
Reference in New Issue
Block a user