mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 16:33:30 +00:00
Rename GLES2 driver to OpenGL to prepare for the upgrade to GLES3
- Use lowercase driver names for the `--rendering-driver` command line argument.
This commit is contained in:
parent
e3491a3744
commit
ce97ddbcb1
98 changed files with 4344 additions and 12432 deletions
|
@ -677,7 +677,7 @@ DisplayServerJavaScript::DisplayServerJavaScript(const String &p_rendering_drive
|
|||
// Expose method for requesting quit.
|
||||
godot_js_os_request_quit_cb(request_quit_callback);
|
||||
|
||||
RasterizerDummy::make_current(); // TODO GLES2 in Godot 4.0... or webgpu?
|
||||
RasterizerDummy::make_current(); // TODO OpenGL in Godot 4.0... or webgpu?
|
||||
#if 0
|
||||
EmscriptenWebGLContextAttributes attributes;
|
||||
emscripten_webgl_init_context_attributes(&attributes);
|
||||
|
@ -691,10 +691,10 @@ DisplayServerJavaScript::DisplayServerJavaScript(const String &p_rendering_drive
|
|||
|
||||
bool gl_initialization_error = false;
|
||||
|
||||
if (RasterizerGLES2::is_viable() == OK) {
|
||||
if (RasterizerOpenGLis_viable() == OK) {
|
||||
attributes.majorVersion = 1;
|
||||
RasterizerGLES2::register_config();
|
||||
RasterizerGLES2::make_current();
|
||||
RasterizerOpenGLregister_config();
|
||||
RasterizerOpenGLmake_current();
|
||||
} else {
|
||||
gl_initialization_error = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue