Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'bindFramebuffer' of undefined,TypeError #47

Open
derofim opened this issue Mar 10, 2019 · 1 comment
Open

Comments

@derofim
Copy link

derofim commented Mar 10, 2019

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

@derofim derofim changed the title TypeError: Cannot read property 'bindFramebuffer' of undefined,TypeError: Cannot read property 'bindFramebuffer' of undefined TypeError: Cannot read property 'bindFramebuffer' of undefined,TypeError Mar 10, 2019
@derofim
Copy link
Author

derofim commented Mar 10, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant