Fixed a problem in GLSLSource

- Fixed a problem with reading the source from istreams for which
  the size cannot be determined reliably.