Skip to content

Commit

Permalink
Enable also GenerateMipmap on newer Intel versions
Browse files Browse the repository at this point in the history
This is vaguely related to
castle-engine/demo-models#3 .
  • Loading branch information
michaliskambi committed Jan 23, 2018
1 parent 5cd7429 commit b58525e
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/base/opengl/castleglversion.pas
Expand Up @@ -454,15 +454,27 @@ constructor TGLVersion.Create(const VersionString, AVendor, ARenderer: string);

FBuggyGenerateMipmap :=
(Mesa and (not VendorVersionAtLeast(7, 5, 0)))
{$ifdef MSWINDOWS} or (VendorType = gvIntel) {$endif};
{$ifdef MSWINDOWS}
or
( (VendorType = gvIntel) and
not VendorVersionAtLeast(9, 0, 0)
)
{$endif};

FBuggyFBOCubeMap :=
{$ifdef MSWINDOWS} ((VendorType = gvIntel) and not VendorVersionAtLeast(9, 0, 0))
{$ifdef MSWINDOWS}
( (VendorType = gvIntel) and
not VendorVersionAtLeast(9, 0, 0)
)
{$else} false
{$endif};

FBuggyGenerateCubeMap :=
{$ifdef MSWINDOWS} ((VendorType = gvIntel) and SameText(Renderer, 'Intel(R) HD Graphics 4000'))
{$ifdef MSWINDOWS}
( (VendorType = gvIntel) and
SameText(Renderer, 'Intel(R) HD Graphics 4000')
not VendorVersionAtLeast(9, 0, 0)
)
{$else} false
{$endif};

Expand Down

0 comments on commit b58525e

Please sign in to comment.