| 1438 | } |
| 1439 | |
| 1440 | void Graphics::SetClientStateEnabled(int type, bool enabled) { |
| 1441 | LOG_ASSERT(type < CS_MAX_SHADOWED_CLIENT_STATES); |
| 1442 | if (enabled != shadow_state_.client_states_[type]) { |
| 1443 | if (type >= CS_TEXTURE_COORD_ARRAY0 && type <= CS_TEXTURE_COORD_ARRAY7) { |
| 1444 | SetClientActiveTexture(type - CS_TEXTURE_COORD_ARRAY0); |
| 1445 | } |
| 1446 | if (enabled) { |
| 1447 | glEnableClientState(GLEnumTransformer(type)); |
| 1448 | } else { |
| 1449 | glDisableClientState(GLEnumTransformer(type)); |
| 1450 | } |
| 1451 | shadow_state_.client_states_[type] = enabled; |
| 1452 | } |
| 1453 | } |
| 1454 | |
| 1455 | void Graphics::SetFromConfig(const Config& config, bool dynamic) { |
| 1456 | if (dynamic && config_.full_screen() == FullscreenMode::kWindowed) { |
no test coverage detected