Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GLES:Fix compatibility checks for instanced rendering. #9506

Merged
merged 1 commit into from
Mar 26, 2017

Conversation

xebra
Copy link
Contributor

@xebra xebra commented Mar 26, 2017

See details in #9455.

@hrydgard hrydgard merged commit c1b37bd into hrydgard:master Mar 26, 2017
@@ -299,8 +299,10 @@ void GPU_GLES::CheckGPUFeatures() {
if (gl_extensions.EXT_texture_filter_anisotropic)
features |= GPU_SUPPORTS_ANISOTROPY;

if (gl_extensions.GLES3 || gl_extensions.EXT_gpu_shader4
|| (!gl_extensions.IsGLES && gl_extensions.VersionGEThan(3, 1)/*GLSL 1.4*/))
bool canUseInstanceID = gl_extensions.EXT_draw_instanced || gl_extensions.ARB_draw_instanced;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If a device is GLES3, it need not (probably won't?) have this extension AFAIK. It's part of GLES3 core and it's not necessary to list core extensions.

Examples:
http://opengles.gpuinfo.org/gles_generatereport.php?reportID=850
http://opengles.gpuinfo.org/gles_generatereport.php?reportID=1398

-[Unknown]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, thanks I'll try to fix it.

@xebra xebra mentioned this pull request Mar 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants