Sigh, r346279 was also a test version with the reduced size doubled (so

it was actually double the full size in current kernels where the reduction
is null, so overran the mmapped() buffer).
This commit is contained in:
bde 2019-04-16 15:52:04 +00:00
parent d621ace57c
commit 84cf2b8768

View File

@ -275,7 +275,7 @@ VGLInit(int mode)
* get the same efficiency and bugs for all kernels. * get the same efficiency and bugs for all kernels.
*/ */
if (VGLModeInfo.vi_mode >= M_VESA_BASE) if (VGLModeInfo.vi_mode >= M_VESA_BASE)
VGLBufSize = 2*VGLAdpInfo.va_line_width*VGLModeInfo.vi_height* VGLBufSize = VGLAdpInfo.va_line_width*VGLModeInfo.vi_height*
VGLModeInfo.vi_planes; VGLModeInfo.vi_planes;
VGLBuf = malloc(VGLBufSize); VGLBuf = malloc(VGLBufSize);
if (VGLBuf == NULL) { if (VGLBuf == NULL) {