Skip to content

Webgl issue#19

Merged
Aditya-138-12 merged 4 commits intoCodeArena-SJCIT:mainfrom
Aditya-138-12:webgp_issue
Feb 13, 2025
Merged

Webgl issue#19
Aditya-138-12 merged 4 commits intoCodeArena-SJCIT:mainfrom
Aditya-138-12:webgp_issue

Conversation

@Aditya-138-12
Copy link
Member

@Aditya-138-12 Aditya-138-12 commented Feb 12, 2025

Changes or Fixes

Checks before loading the model whether the browser supports webGL or not, if not then the model is not shown preveting a blank screen instead showing them a error message.

Additional Information

Seeing the preview, the loader seems to have some issue, it behaves unexpectedly.

@Aditya-138-12 Aditya-138-12 added the bug Something isn't working label Feb 12, 2025
@vercel
Copy link

vercel bot commented Feb 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 12, 2025 7:09pm

@github-actions
Copy link

⚠️ A maintainer should review this before it is merged. 🚀

@Aditya-138-12 Aditya-138-12 merged commit 69c9bde into CodeArena-SJCIT:main Feb 13, 2025
2 checks passed
const isWebGLSupported = () => {
try{
const canvas = document.createElement("canvas");
if(!window.WebGLRenderingContext){
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

canvas.height = 0;
canvas.width = 0;
Maybe fix the loader issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants