Canvas icon indicating copy to clipboard operation
Canvas copied to clipboard

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

Open TFeast opened this issue 5 years ago • 1 comments

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 avatar Mar 24 '20 03:03 TFeast

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

TFeast avatar Mar 24 '20 09:03 TFeast