mirror of
https://github.com/love2d/love.git
synced 2026-08-20 04:30:09 +02:00
Remove a workaround for a driver that's no longer supported
This commit is contained in:
@@ -377,13 +377,6 @@ bool Graphics::setMode(void */*context*/, int width, int height, int pixelwidth,
|
|||||||
{
|
{
|
||||||
auto stype = (Shader::StandardShader) i;
|
auto stype = (Shader::StandardShader) i;
|
||||||
|
|
||||||
if (i == Shader::STANDARD_ARRAY && !capabilities.textureTypes[TEXTURE_2D_ARRAY])
|
|
||||||
continue;
|
|
||||||
|
|
||||||
// Apparently some intel GMA drivers on windows fail to compile shaders
|
|
||||||
// which use array textures despite claiming support for the extension.
|
|
||||||
try
|
|
||||||
{
|
|
||||||
if (!Shader::standardShaders[i])
|
if (!Shader::standardShaders[i])
|
||||||
{
|
{
|
||||||
std::vector<std::string> stages;
|
std::vector<std::string> stages;
|
||||||
@@ -393,14 +386,6 @@ bool Graphics::setMode(void */*context*/, int width, int height, int pixelwidth,
|
|||||||
Shader::standardShaders[i] = newShader(stages, opts);
|
Shader::standardShaders[i] = newShader(stages, opts);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (love::Exception &)
|
|
||||||
{
|
|
||||||
if (i == Shader::STANDARD_ARRAY)
|
|
||||||
capabilities.textureTypes[TEXTURE_2D_ARRAY] = false;
|
|
||||||
else
|
|
||||||
throw;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// A shader should always be active, but the default shader shouldn't be
|
// A shader should always be active, but the default shader shouldn't be
|
||||||
// returned by getShader(), so we don't do setShader(defaultShader).
|
// returned by getShader(), so we don't do setShader(defaultShader).
|
||||||
|
|||||||
Reference in New Issue
Block a user