fix type error
This commit is contained in:
parent
9dcc23a180
commit
4eab292e1b
@ -136,7 +136,7 @@ export function MapComponent({
|
|||||||
gl.compileShader(shader);
|
gl.compileShader(shader);
|
||||||
|
|
||||||
if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS)) {
|
if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS)) {
|
||||||
const errorLog = gl.getShaderInfoLog(shader);
|
const errorLog = gl.getShaderInfoLog(shader) || 'Unknown shader compilation error';
|
||||||
const error = new Error(`Shader compilation failed: ${errorLog}`);
|
const error = new Error(`Shader compilation failed: ${errorLog}`);
|
||||||
Sentry.captureException(error, {
|
Sentry.captureException(error, {
|
||||||
tags: { component: 'MapComponent', operation: 'shader_compilation' },
|
tags: { component: 'MapComponent', operation: 'shader_compilation' },
|
||||||
@ -164,7 +164,7 @@ export function MapComponent({
|
|||||||
gl.linkProgram(program);
|
gl.linkProgram(program);
|
||||||
|
|
||||||
if (!gl.getProgramParameter(program, gl.LINK_STATUS)) {
|
if (!gl.getProgramParameter(program, gl.LINK_STATUS)) {
|
||||||
const errorLog = gl.getProgramInfoLog(program);
|
const errorLog = gl.getProgramInfoLog(program) || 'Unknown program linking error';
|
||||||
const error = new Error(`WebGL program linking failed: ${errorLog}`);
|
const error = new Error(`WebGL program linking failed: ${errorLog}`);
|
||||||
Sentry.captureException(error, {
|
Sentry.captureException(error, {
|
||||||
tags: { component: 'MapComponent', operation: 'program_linking' },
|
tags: { component: 'MapComponent', operation: 'program_linking' },
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user