Skip to content

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

@derofim

Description

@derofim

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions