You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use 'Windows 11 home basic', version '21H2', 64-bit operating system.
the Core Graphic Card is Intel UHD Graphics and the Discrete graphic card is NVIDIA GeForce RTX 3070.
the DEMO runs on the Core Graphic Card display mode.
I checked, the Core Graphic Card does not support these APIs, and our ImGui project may have not used these?
I checked,the Core Graphic Card does not support GL.GL_CLAMP at LoadImage() Function.
/// <summary>/// Load an image from a file./// </summary>/// <param name="filePath"></param>publicvoidLoadImage(stringfilePath){// check file header, save texture data to bufferif(!filePath.EndsWith(".png")){thrownewNotSupportedException("Only RGBA8 png file is supported for now.");}this.image=newImage(filePath);textureData=image.Data;this.Width=this.image.Width;this.Height=this.image.Height;// create opengl texture objectGL.ActiveTexture(GL.GL_TEXTURE0);GL.GenTextures(1,this.textureIdBuffer);vartextureHandle=this.textureIdBuffer[0];GL.BindTexture(GL.GL_TEXTURE_2D,textureHandle);vartextureDataPtr=Marshal.UnsafeAddrOfPinnedArrayElement(this.textureData,0);GL.TexImage2D(GL.GL_TEXTURE_2D,0,GL.GL_RGBA,this.Width,this.Height,0,GL.GL_RGBA,GL.GL_UNSIGNED_BYTE,textureDataPtr);//sampler settingsGL.TexParameteri(GL.GL_TEXTURE_2D,GL.GL_TEXTURE_WRAP_S,(int)GL.GL_CLAMP);//HERE!GL.TexParameteri(GL.GL_TEXTURE_2D,GL.GL_TEXTURE_WRAP_T,(int)GL.GL_CLAMP);//HERE!GL.TexParameteri(GL.GL_TEXTURE_2D,GL.GL_TEXTURE_MAG_FILTER,(int)GL.GL_LINEAR);GL.TexParameteri(GL.GL_TEXTURE_2D,GL.GL_TEXTURE_MIN_FILTER,(int)GL.GL_LINEAR);Utility.CheckGLError();}
let (int)GL.GL_CLAMP change to GL.GL_CLAMP_TO_EDGE. it's fine.
// TextureWrapMode
// GL_CLAMP doesn't exist in WebGL, so don't use it in WebGL! Use GL_CLAMP_TO_EDGE instead.
public const uint GL_CLAMP = 0x2900;
BUT When I switch display mode to Discrete Graphic Card, the code have not change. the DEMO program would be good.
Do you plan to make it compatible?
THANKS!
The text was updated successfully, but these errors were encountered:
Hello
When i run the DEMO on my notebook.the following error is thrown in all of them:
I use 'Windows 11 home basic', version '21H2', 64-bit operating system.
the Core Graphic Card is Intel UHD Graphics and the Discrete graphic card is NVIDIA GeForce RTX 3070.
the DEMO runs on the Core Graphic Card display mode.
I checked, the Core Graphic Card does not support these APIs, and our ImGui project may have not used these?
so here's my temporary solution is comment all of them.
As well as, on the Core Graphic Card display mode, it can not even create images.
I checked,the Core Graphic Card does not support GL.GL_CLAMP at LoadImage() Function.
let
(int)GL.GL_CLAMP
change toGL.GL_CLAMP_TO_EDGE
. it's fine.BUT When I switch display mode to Discrete Graphic Card, the code have not change. the DEMO program would be good.
Do you plan to make it compatible?
THANKS!
The text was updated successfully, but these errors were encountered: