renderer: make it better for compiling gles