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

Failed to execute 'texImage2D' on 'WebGLRenderingContext': Valid arities are: [6, 9], but 8 arguments provided #63

Open
TFeast opened this issue Mar 24, 2020 · 1 comment

Comments

@TFeast
Copy link

TFeast commented Mar 24, 2020

Failed to execute 'texImage2D' on 'WebGLRenderingContext': Valid arities are: [6, 9], but 8 arguments provided

        uint[] tempData = new uint[4]{ 255, 255, 255,255 } ;
        var texture = await _context.CreateTextureAsync();
        await _context.BindTextureAsync(TextureType.TEXTURE_2D, texture);
        await _context.TexImage2DAsync<uint>(Texture2DType.TEXTURE_2D, 0, PixelFormat.RGBA, 1, 1
            , PixelFormat.RGBA, PixelType.UNSIGNED_BYTE, tempData);

I'm not sure my usage is correct , throw this error when the program executes to TexImage2DAsync.

@TFeast
Copy link
Author

TFeast commented Mar 24, 2020

https://github.com/BlazorExtensions/Canvas/pull/60
already fixed missing "border" parameter, but nuget has not update.

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