TexStorage2D_(target, levels, internalformat, width, height) [GL_INVALID_VALUE] error
Posted: 16 Sep 2021, 00:38
Hi
I'm trying to display an image loaded from a PNG file. Image spec from imagemagick:
At the time of rendering the image in a <Image src="Icon.png" /> XAML tag I get the following error:
TexStorage2D_(target, levels, internalformat, width, height) [GL_INVALID_VALUE]
I loaded the texture with the bin2h tool.
I tried with the example texture from the NineSlice example and I'm getting the same error. Any pointers?
I'm trying to display an image loaded from a PNG file. Image spec from imagemagick:
I'm using the embedded texture loader in C++ on iOS:Icon.png PNG 20x20 20x20+0+0 8-bit sRGB 212c 1798B 0.000u 0:00.000
Code: Select all
NoesisApp::EmbeddedTexture textures[] =
{
{ "Icon.png", Icon_png }
};
auto tp = new NoesisApp::EmbeddedTextureProvider(textures);
// Setup theme
NoesisApp::SetThemeProviders();
Noesis::GUI::LoadApplicationResources("Theme/NoesisTheme.DarkBlue.xaml");
Noesis::GUI::SetTextureProvider(tp);TexStorage2D_(target, levels, internalformat, width, height) [GL_INVALID_VALUE]
I loaded the texture with the bin2h tool.
I tried with the example texture from the NineSlice example and I'm getting the same error. Any pointers?