fixing gpu_mem_512=256 for ES2