Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/library_webgl.js
Original file line number Diff line number Diff line change
Expand Up @@ -1056,6 +1056,7 @@ var LibraryGL = {
"OES_element_index_uint", "EXT_texture_filter_anisotropic", "EXT_frag_depth",
"WEBGL_draw_buffers", "ANGLE_instanced_arrays", "OES_texture_float_linear",
"OES_texture_half_float_linear", "EXT_blend_minmax", "EXT_shader_texture_lod",
"EXT_texture_norm16",
// Community approved WebGL extensions ordered by number:
"WEBGL_compressed_texture_pvrtc", "EXT_color_buffer_half_float", "WEBGL_color_buffer_float",
"EXT_sRGB", "WEBGL_compressed_texture_etc1", "EXT_disjoint_timer_query",
Expand Down
10 changes: 10 additions & 0 deletions system/lib/gl/webgl1_ext.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,3 +227,13 @@ void emscripten_webgl_getSupportedAstcProfiles(GLsizei bufSize, GLsizei *length,
#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT 0x8C4D
#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT 0x8C4E
#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT 0x8C4F

// 44. https://www.khronos.org/registry/webgl/extensions/EXT_texture_norm16/
#define GL_R16_EXT 0x822A
#define GL_RG16_EXT 0x822C
#define GL_RGB16_EXT 0x8054
#define GL_RGBA16_EXT 0x805B
#define GL_R16_SNORM_EXT 0x8F98
#define GL_RG16_SNORM_EXT 0x8F99
#define GL_RGB16_SNORM_EXT 0x8F9A
#define GL_RGBA16_SNORM_EXT 0x8F9B