Skip to content
Snippets Groups Projects
Commit 31733967 authored by Alexander Rose's avatar Alexander Rose
Browse files

use constant from gl context if available

parent 212a3eeb
No related branches found
No related tags found
No related merge requests found
......@@ -408,7 +408,7 @@ export function loadImageTexture(src: string, cell: ValueCell<Texture>, texture:
//
export function createNullTexture(gl?: GLRenderingContext): Texture {
const target = 3553;
const target = gl?.TEXTURE_2D ?? 3553;
return {
id: getNextTextureId(),
target,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment