1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-11-10 11:55:27 +01:00

Port most shaders to GLSL ES 3.0 (#16639)

This commit is contained in:
sfan5
2025-11-06 19:31:35 +01:00
committed by GitHub
parent 98fb381910
commit 298a27c743
37 changed files with 239 additions and 263 deletions

View File

@@ -2649,6 +2649,7 @@ ITexture *COpenGLDriver::addRenderTargetTextureCubemap(const u32 sideLen, const
SDriverLimits COpenGLDriver::getLimits() const
{
SDriverLimits ret;
ret.GLVersion = core::vector2di(Version / 100, Version % 100);
ret.MaxPrimitiveCount = 0x7fffffff;
ret.MaxTextureSize = MaxTextureSize;
return ret;

View File

@@ -1687,6 +1687,7 @@ ITexture *COpenGL3DriverBase::addRenderTargetTextureCubemap(const u32 sideLen, c
SDriverLimits COpenGL3DriverBase::getLimits() const
{
SDriverLimits ret;
ret.GLVersion = core::vector2di(Version.Major, Version.Minor);
ret.MaxPrimitiveCount = Version.Spec == OpenGLSpec::ES ? UINT16_MAX : INT32_MAX;
ret.MaxTextureSize = MaxTextureSize;
ret.MaxArrayTextureImages = MaxArrayTextureLayers;