Make sure we don't write out of array.

It shouldn't happen, but code below assumes that visualAttrBuffer has its full size, so just in case...
This commit is contained in:
Deve 2017-08-23 00:13:57 +02:00
parent b03e108902
commit dec9948d0b

View File

@ -673,11 +673,15 @@ bool CIrrDeviceLinux::createWindow()
#elif defined(GLX_SGIS_multisample)
GLX_SAMPLE_BUFFERS_SGIS, 1,
GLX_SAMPLES_SGIS, CreationParams.AntiAlias, // 18,19
#else
#error
#endif
#ifdef GLX_ARB_framebuffer_sRGB
GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB, CreationParams.HandleSRGB,
#elif defined(GLX_EXT_framebuffer_sRGB)
GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT, CreationParams.HandleSRGB,
#else
#error
#endif
GLX_STEREO, CreationParams.Stereobuffer?True:False,
None