Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add GL_MAX_LIGHTS and GL_MAX_TEXTURE_UNITS to RegalEmu::Get #6

Merged
merged 1 commit into from

2 participants

@greggman

Is this the right place to add these?

I'm on ES 2.0 hoping to use Regal to emulate ES 1.1

neither GL_MAX_LIGHTS nor GL_MAX_TEXTURE_UNITS exist in 2.0

@nigels-com
Collaborator

Yes, that looks like the right place.

@nigels-com nigels-com merged commit 9f4ddb4 into p3:master
@nigels-com
Collaborator

Merged in, thanks for the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/regal/RegalIff.h
View
8 src/regal/RegalIff.h
@@ -1783,6 +1783,14 @@ struct RegalIff : public RegalEmu {
*params = static_cast<T>(shadowMatrixMode);
break;
}
+ case GL_MAX_LIGHTS: {
+ *params = static_cast<T>(REGAL_FIXED_FUNCTION_MAX_LIGHTS);
+ break;
+ }
+ case GL_MAX_TEXTURE_UNITS: {
+ *params = static_cast<T>(REGAL_FIXED_FUNCTION_MAX_TEXTURE_UNITS);
+ break;
+ }
default:
return false;
}
Something went wrong with that request. Please try again.