TypeError: Cannot read property 'bindFramebuffer' of undefined,TypeError
derofim opened this issue · comments
Den commented
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
window = SDL_CreateWindow("sdl_gl_read", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, width, height, SDL_WINDOW_OPENGL);
// ...
SDL_GL_CreateContext
//...
SDL_GetWindowSurface
similar to https://gist.github.com/derofim/033cb33ed46636071d3983bb7b235981
Den commented
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.