Find a file
Pekka Paalanen 3429a72597 compositor: fix uniform handling for fade_output()
fade_output() is strange in that it manufactures a wlsc_surface object
by hand, and then calls wlsc_surface_draw() on it.

Valgrind complained, that wlsc_surface_draw() accesses uninitialised
data: wlsc_surface::alpha. fade_output() forgets to set it.

Initialise surface.alpha in fade_output(). Specifically, set it to
compositor->current_alpha to deliberatly avoid the gluniform1f() call in
wlsc_surface_draw().

fade_output() binds a different GL shader program than
wlsc_surface_draw() expects. This program does not have a uniform called
"alpha", and the uniform location given in glUniform1f() is not for
this program anyway. A hint of that is the runtime error:
Mesa: User error: GL_INVALID_OPERATION in glUniform(type mismatch)

Fixing this seems to get rid of half a thousand of Valgrind errors, and
of course the Mesa user error.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2011-12-20 10:59:39 -05:00
clients clients: Implement a toy-menu for testing the menu surface type 2011-12-19 15:40:10 -05:00
compositor compositor: fix uniform handling for fade_output() 2011-12-20 10:59:39 -05:00
data Fix out of source build [wayland.png] 2011-01-30 20:56:01 -05:00
protocol protocol: add screensaver interface 2011-12-14 11:17:00 +02:00
shared Use '-' to separate words in file names 2011-12-08 12:44:27 -05:00
.gitignore Clean up .gitignore files 2010-11-11 20:11:27 -05:00
autogen.sh Update autotools configuration 2010-11-06 21:04:03 -04:00
configure.ac move config parser to a convenience library 2011-12-08 10:25:12 +02:00
Makefile.am move config parser to a convenience library 2011-12-08 10:25:12 +02:00
README Split into a demo repository that holds the demo compositor and clients 2011-02-14 22:13:33 -05:00
wayland-desktop-shell.ini compositor: let shell override idle time 2011-12-14 13:50:35 +02:00
wayland-tablet-shell.ini tablet-shell: Add more interesting lock and home screens 2011-11-26 23:38:46 -05:00

Wayland Demos

This repository contains a few demos application for the Wayland
project.  There's a sample compositor that can run on KMS, under X11
or under another Wayland compositor and there's a handful of simple
clients that demonstrate various aspects of Wayland: