mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Move enabling of WebGL compressed texture formats to extensions
This commit is contained in:
committed by
Jelle Raaijmakers
parent
3101565f05
commit
fa8e122dd4
Notes:
github-actions[bot]
2026-03-11 19:21:40 +00:00
Author: https://github.com/cqundefine Commit: https://github.com/LadybirdBrowser/ladybird/commit/fa8e122dd45 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8285 Reviewed-by: https://github.com/gmta ✅
@@ -4,6 +4,9 @@
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <GLES2/gl2.h>
|
||||
#include <GLES2/gl2ext.h>
|
||||
|
||||
#include <LibJS/Runtime/Realm.h>
|
||||
#include <LibWeb/Bindings/Intrinsics.h>
|
||||
#include <LibWeb/Bindings/WebGLCompressedTextureS3tcPrototype.h>
|
||||
@@ -27,6 +30,11 @@ WebGLCompressedTextureS3tc::WebGLCompressedTextureS3tc(JS::Realm& realm, GC::Ref
|
||||
m_context->context().request_extension("GL_EXT_texture_compression_dxt1");
|
||||
m_context->context().request_extension("GL_ANGLE_texture_compression_dxt3");
|
||||
m_context->context().request_extension("GL_ANGLE_texture_compression_dxt5");
|
||||
|
||||
m_context->enable_compressed_texture_format(GL_COMPRESSED_RGB_S3TC_DXT1_EXT);
|
||||
m_context->enable_compressed_texture_format(GL_COMPRESSED_RGBA_S3TC_DXT1_EXT);
|
||||
m_context->enable_compressed_texture_format(GL_COMPRESSED_RGBA_S3TC_DXT3_EXT);
|
||||
m_context->enable_compressed_texture_format(GL_COMPRESSED_RGBA_S3TC_DXT5_EXT);
|
||||
}
|
||||
|
||||
void WebGLCompressedTextureS3tc::initialize(JS::Realm& realm)
|
||||
|
||||
Reference in New Issue
Block a user