diff options
author | Bruce Evans <bde@FreeBSD.org> | 2019-03-24 16:47:43 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 2019-03-24 16:47:43 +0000 |
commit | 425c24e5da3fdd2a716d9f545faafddcac99334b (patch) | |
tree | 97812cf2857e35c1c07334cb62af11d0a5ebd48e /lib/libvgl | |
parent | 803fff9065e5e634cd3224b44379e3613c6ffddf (diff) | |
download | src-425c24e5da3fdd2a716d9f545faafddcac99334b.tar.gz src-425c24e5da3fdd2a716d9f545faafddcac99334b.zip |
Notes
Diffstat (limited to 'lib/libvgl')
-rw-r--r-- | lib/libvgl/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libvgl/main.c b/lib/libvgl/main.c index b78ce6cd5255..99563727ecb0 100644 --- a/lib/libvgl/main.c +++ b/lib/libvgl/main.c @@ -301,7 +301,7 @@ VGLInit(int mode) VGLDisplay->Yorigin = 0; VGLMem = (byte*)mmap(0, VGLAdpInfo.va_window_size, PROT_READ|PROT_WRITE, - MAP_FILE, 0, 0); + MAP_FILE | MAP_SHARED, 0, 0); if (VGLMem == MAP_FAILED) { VGLEnd(); return -7; @@ -350,7 +350,7 @@ VGLCheckSwitch() ioctl(0, VGLMode, 0); VGLCurWindow = 0; VGLMem = (byte*)mmap(0, VGLAdpInfo.va_window_size, PROT_READ|PROT_WRITE, - MAP_FILE, 0, 0); + MAP_FILE | MAP_SHARED, 0, 0); /* XXX: what if mmap() has failed! */ VGLDisplay->Type = VIDBUF8; /* XXX */ |