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

WebGL: INVALID_OPERATION: texImage2D: ArrayBufferView not big enough for request #238

Open
projsdev97 opened this issue Apr 11, 2022 · 1 comment

Comments

@projsdev97
Copy link

projsdev97 commented Apr 11, 2022

Hi @soliton4 How are you? Hope you are doing well.
I've checked your activities that you had replied to so many questions up to now.
Thanks for your all effort.

I've recently got this issue when rendering 2k video "WebGL: INVALID_OPERATION: texImage2D: ArrayBufferView not big enough for request"
image

I will appreciate it if you can help me in a short time.
Thanks.

@keithrausch
Copy link

What is the horizontal resolution of your video?
My understanding is that OpenGL typically expects a horizontal width that's divisible by 4.
See this:
https://www.khronos.org/opengl/wiki/Common_Mistakes#Texture_upload_and_pixel_reads

When I work with strangely sized images in my code I have to write:

if (width % 4 != 0)  
  gl.pixelStorei(gl.UNPACK_ALIGNMENT, 1);

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

2 participants