Skip to content

Commit

Permalink
ソング:webGLVersionが2未満の場合にエラーとしてロギングするようにする (#2033)
Browse files Browse the repository at this point in the history
webGLVersionが2未満の場合にエラーとしてロギングするようにした
  • Loading branch information
sigprogramming committed Apr 28, 2024
1 parent fb0adce commit 34678b5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/Sing/SequencerPitch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const props = defineProps<{
| { type: "erase"; startFrame: number; frameLength: number };
}>();
const { warn } = createLogger("SequencerPitch");
const { warn, error } = createLogger("SequencerPitch");
const store = useStore();
const singingGuides = computed(() => [...store.state.singingGuides.values()]);
const pitchEditData = computed(() => {
Expand Down Expand Up @@ -425,6 +425,13 @@ onMountedOrActivated(() => {
});
stage = new PIXI.Container();
// webGLVersionをチェックする
// 2未満の場合、ピッチの表示ができないのでエラーとしてロギングする
const webGLVersion = renderer.context.webGLVersion;
if (webGLVersion < 2) {
error(`webGLVersion is less than 2. webGLVersion: ${webGLVersion}`);
}
const callback = () => {
if (renderInNextFrame) {
render();
Expand Down

0 comments on commit 34678b5

Please sign in to comment.