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

opengl: creating framebuffer failed: 36061 #810

Closed
hajimehoshi opened this issue Feb 9, 2019 · 5 comments
Closed

opengl: creating framebuffer failed: 36061 #810

hajimehoshi opened this issue Feb 9, 2019 · 5 comments
Milestone

Comments

@hajimehoshi
Copy link
Owner

Found reports from our game.

36061 = GL_FRAMEBUFFER_UNSUPPORTED?

@hajimehoshi hajimehoshi added the bug label Feb 9, 2019
@hajimehoshi hajimehoshi added this to the v1.9.0 milestone Feb 9, 2019
@hajimehoshi
Copy link
Owner Author

Huh, this comes from old devices like iPhone 4 or iPad 2...

@hajimehoshi
Copy link
Owner Author

The report of our games says that this sometimes happen on
iPad2, iPad2, iPad3, iPad4, iPadMini, iPhone4S, iPhone5

CC @wasedaigo

@hajimehoshi
Copy link
Owner Author

hajimehoshi commented Feb 14, 2019

https://discussions.apple.com/thread/3908778
https://www.khronos.org/opengl/wiki/Framebuffer_Object_Extension_Examples

//Does the GPU support current FBO configuration?
//Before checking the configuration, you should call these 2 according to the spec.
//At the very least, you need to call glDrawBuffer(GL_NONE)
glDrawBuffer(GL_NONE);
glReadBuffer(GL_NONE);

EDIT: glDrawBuffer(s) doesn't exist on OpenGL ES 2 🤔

@hajimehoshi
Copy link
Owner Author

https://stackoverflow.com/questions/15935651/certain-framebuffer-sizes-fail-on-ios-devices-gl-framebuffer-unsupported

The framebuffer size width or height must be > 8 on some iOS devices.

And framebuffer sizes of our game are:

16 16
1024 1024
16 16
1 20
2048 2048
2304 54
480 720
16 16

So, that's the cause?

@hajimehoshi hajimehoshi added this to the v1.9.0 milestone Feb 14, 2019
hajimehoshi added a commit that referenced this issue Feb 14, 2019
…ize adjustment

There is a minimum internal image size on some system like old iOS
devices. This change adds adjustment of the size.

Issue: #810
@hajimehoshi
Copy link
Owner Author

Fixed!

micahscopes added a commit to micahscopes/webscape-wanderer that referenced this issue May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant