Davidobot / love.js

LÖVE ported to the web using Emscripten, updated to the latest Emscripten and LÖVE (v11.5)
MIT License
605 stars 27 forks source link

"The rgba8 canvas format is not supported by your graphics drivers." #55

Closed IoriBranford closed 2 years ago

IoriBranford commented 2 years ago

A web build of this project with the latest love.js from npm fails with the above error. https://github.com/ioribranford/dragontail dragontail-web.zip

This project built with the same version of love.js doesn't have that problem. https://github.com/ioribranford/ld49 jennybee-web.zip

They both create the window manually (not with conf.lua) and draw to a canvas. I think the problem is on my end but it's not obvious where to start looking.

japhib commented 2 years ago

Do you create the canvas with format rgba8?

edit: looks like rgba8 is the default canvas format, according to the wiki: https://love2d.org/wiki/CanvasFormat

You might just want to experiment with different canvas formats and see if a different one works.

Davidobot commented 2 years ago

This is likely because I didn't push the 11.4 to npm yet. My bad. I will do once I implement https://github.com/Davidobot/love.js/issues/61

Davidobot commented 2 years ago

All pushed now: https://www.npmjs.com/package/love.js/v/11.4.1