diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/runqemu | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index 54f2336ba9..1143509975 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
@@ -1349,9 +1349,14 @@ class BaseConfig(object): | |||
1349 | raise RunQemuError('Option gl/gl-es needs gtk or sdl option.') | 1349 | raise RunQemuError('Option gl/gl-es needs gtk or sdl option.') |
1350 | 1350 | ||
1351 | if self.sdl == True or self.gtk == True or self.egl_headless == True: | 1351 | if self.sdl == True or self.gtk == True or self.egl_headless == True: |
1352 | self.set_dri_path() | 1352 | if self.gl or self.gl_es or self.egl_headless: |
1353 | self.qemu_opt += ' -device virtio-vga-gl -display ' | 1353 | self.qemu_opt += ' -device virtio-vga-gl ' |
1354 | else: | ||
1355 | self.qemu_opt += ' -device virtio-vga ' | ||
1356 | |||
1357 | self.qemu_opt += '-display ' | ||
1354 | if self.egl_headless == True: | 1358 | if self.egl_headless == True: |
1359 | self.set_dri_path() | ||
1355 | self.qemu_opt += 'egl-headless,' | 1360 | self.qemu_opt += 'egl-headless,' |
1356 | else: | 1361 | else: |
1357 | if self.sdl == True: | 1362 | if self.sdl == True: |
@@ -1360,8 +1365,10 @@ class BaseConfig(object): | |||
1360 | self.qemu_opt += 'gtk,' | 1365 | self.qemu_opt += 'gtk,' |
1361 | 1366 | ||
1362 | if self.gl == True: | 1367 | if self.gl == True: |
1368 | self.set_dri_path() | ||
1363 | self.qemu_opt += 'gl=on,' | 1369 | self.qemu_opt += 'gl=on,' |
1364 | elif self.gl_es == True: | 1370 | elif self.gl_es == True: |
1371 | self.set_dri_path() | ||
1365 | self.qemu_opt += 'gl=es,' | 1372 | self.qemu_opt += 'gl=es,' |
1366 | self.qemu_opt += 'show-cursor=on' | 1373 | self.qemu_opt += 'show-cursor=on' |
1367 | 1374 | ||