Open derofim opened 5 years ago
Maybe that code will help to integrate WebKit with modern SDL2 & emscripten:
https://gist.github.com/derofim/d4862a41fa53c910d2efae86b7ac04dc
Created test with cairo & sdl2 & opengl es 2 (replaced code in Main.cpp)
Works fine, but i tested cairo without WebKit.
can`t create sdl_screen with SDL_SetVideoMode:
Cannot read property 'bindFramebuffer' of undefined
seems related to this: https://stackoverflow.com/a/10159501/10904212
emsdk: 1.38.28_64bit
maybe need to call
similar to https://gist.github.com/derofim/033cb33ed46636071d3983bb7b235981