[WebGL] Add preffed limit to WebGL vertCount

Defaults to 30M, working around driver bugs (looking at you, Mesa)
This commit is contained in:
Moonchild 2023-10-25 07:53:57 +02:00 committed by roytam1
commit e4d635f889
4 changed files with 17 additions and 1 deletions

View file

@ -8,6 +8,7 @@
#include <stdarg.h>
#include "gfxPrefs.h"
#include "GLContextTypes.h"
#include "GLDefs.h"
#include "mozilla/Attributes.h"
@ -1397,6 +1398,7 @@ protected:
CheckedUint32 mGeneration;
WebGLContextOptions mOptions;
const uint32_t mMaxVertIdsPerDraw = gfxPrefs::WebglMaxVertIDsPerDraw();
bool mInvalidated;
bool mCapturedFrameInvalidated;