bugfix:
- fix invalid handling of CLOSE message under win32.
- remove redundant material setup for texture test.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>