0x00007FFA357239F0 (ig7icd64.dll) : 访问冲突读取位置 0x00000000

问题描述 投票:0回答:0

我正在使用 C++ 开发 opengl-texture。我得到了访问冲突读取位置。

错误信息: AEROPLANE.exe 中的 0x00007FFA357239F0 (ig7icd64.dll): 0xC0000005:

||仅当我尝试向我的对象添加纹理时才会出现此错误||

#version 330 core 
out vec4 Fragmentcolor; 

in vec4 ourColor;
in vec2 txCoord; 

uniform sampler2D texture1; 

void main(){
        // Fragmentcolor = ourColor; 
     Fragmentcolor = texture(texture1, txCoord);
}```
This is the frgament Shader code 
when i uncomment the Fragmentcolor = texture(texture1, txCoord); i got the exception 


|||| one more thing i want to ask that when i ask to chat GPt he said this there is an error with graphics processing you need to update it . should i ? |||| 
 


 
c++ opengl textures uniform
© www.soinside.com 2019 - 2024. All rights reserved.