bugfix:
- fix invalid texture samplaer id for 2d textures.
- add handler for a missing event handler pointer.

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