Получение неисправности сегментации во время связывания части моей программы шейдеров.
Я привык не получать эту ошибку на моем старом ПК, но теперь на моем новом компьютере я делаю. < /p>
Я сузил его до функции gllinkprogram () в моем коде шейдера.
Thread 1 received signal SIGSEGV, Segmentation fault.
0x00007ffa1a4e1063 in ?? () from C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch_d.inf_amd64_700aa42c7c2ae74a\igxe2hpgicd64.dll
The target architecture is set to "auto" (currently "i386:x86-64").
< /code>
Ошибка, по -видимому, от самого драйвера. Я использую графический процессор Intel Arc B580.
ошибка в драйвере? /> code < /p>
#include "Shader.h"
#include
#include
#include
std::string readFile(const std::string& filePath);
/*
* .vert - a vertex shader
* .geom - a geometry shader
* .frag - a fragment shader
* .comp - a compute shader
*/
GLuint GetShader(const std::string& path)
{
const std::string format = path.substr(path.size() - 5, 5);
GLenum type;
if (format == ".vert") type = GL_VERTEX_SHADER;
else if (format == ".geom") type = GL_GEOMETRY_SHADER;
else if (format == ".frag") type = GL_FRAGMENT_SHADER;
else if (format == ".comp") type = GL_COMPUTE_SHADER;
else
{
std::cerr
Подробнее здесь: https://stackoverflow.com/questions/793 ... inkprogram
Сказать ошибку во время glLinkProgram ⇐ C++
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение