-
Notifications
You must be signed in to change notification settings - Fork 194
Open
Description
os : ubunut 24.04
session type : wayland
glew : libglew2.2:amd64
running tutorial31_youtube leads to the following error :
GLFW 3.3.10 initialized
ogldev_glfw.cpp:77 - Unknown errortutorial31: ogldev_glfw.cpp:78: void init_glew(): Assertion `0' failed.
Aborted (core dumped)
I had to comment out the error handling inside the function to make it work.
static void init_glew()
{
glewExperimental = GL_TRUE;
GLenum res = glewInit();
printf("res = %d\n", res); // <= output res
if (res != GLEW_OK) {
// OGLDEV_ERROR0((const char*)glewGetErrorString(res));
// assert(0);
// exit(1);
}
}
res = 4 => looking at the source of glew_init function, res = 4 , " Unknown error ".
This thread may indicate a wayland specific issue.
GLFW 3.3.10 initialized
res = 4 <= res = 4
Warning! Unable to get the location of uniform 'gWireframeColor'
Warning! Unable to get the location of uniform 'gNormalMap'
Num materials: 4
Loaded texture '../Content/wal67ar_small.jpg' width 250, height 250, bpp 3
!!! Debug callback !!!
Debug message: id 1, GL_INVALID_OPERATION in glGetTextureHandleARB(unsupported)
Message source: API
Error type: Error
Severity: High
!!! Debug callback !!!
Debug message: id 1, GL_INVALID_OPERATION in glMakeTextureHandleResidentARB(unsupported)
Message source: API
Error type: Error
Severity: High
Loaded diffuse texture '../Content/wal67ar_small.jpg' at index 0
Shading model 2
Loaded ambient color [0.200000 0.200000 0.200000]
Loaded diffuse color [0.827451 0.792157 0.772549]
Loaded specular color [0.000000 0.000000 0.000000]
Loaded texture '../Content/SpiderTex.jpg' width 249, height 250, bpp 3
!!! Debug callback !!!
Debug message: id 1, GL_INVALID_OPERATION in glGetTextureHandleARB(unsupported)
Message source: API
Error type: Error
Severity: High
!!! Debug callback !!!
Debug message: id 1, GL_INVALID_OPERATION in glMakeTextureHandleResidentARB(unsupported)
Message source: API
Error type: Error
Severity: High
Loaded diffuse texture '../Content/SpiderTex.jpg' at index 1
Shading model 2
Loaded ambient color [0.200000 0.200000 0.200000]
Loaded diffuse color [0.690196 0.639216 0.615686]
Loaded specular color [0.000000 0.000000 0.000000]
Loaded texture '../Content/drkwood2.jpg' width 768, height 768, bpp 3
!!! Debug callback !!!
Debug message: id 1, GL_INVALID_OPERATION in glGetTextureHandleARB(unsupported)
Message source: API
Error type: Error
Severity: High
!!! Debug callback !!!
Debug message: id 1, GL_INVALID_OPERATION in glMakeTextureHandleResidentARB(unsupported)
Message source: API
Error type: Error
Severity: High
Loaded diffuse texture '../Content/drkwood2.jpg' at index 2
Shading model 2
Loaded ambient color [0.200000 0.200000 0.200000]
Loaded diffuse color [0.800000 0.800000 0.800000]
Loaded specular color [0.000000 0.000000 0.000000]
Loaded texture '../Content/engineflare1.jpg' width 128, height 128, bpp 3
!!! Debug callback !!!
Debug message: id 1, GL_INVALID_OPERATION in glGetTextureHandleARB(unsupported)
Message source: API
Error type: Error
Severity: High
!!! Debug callback !!!
Debug message: id 1, GL_INVALID_OPERATION in glMakeTextureHandleResidentARB(unsupported)
Message source: API
Error type: Error
Severity: High
Loaded diffuse texture '../Content/engineflare1.jpg' at index 3
Shading model 2
Loaded ambient color [0.200000 0.200000 0.200000]
Loaded diffuse color [0.800000 0.800000 0.800000]
Loaded specular color [0.000000 0.000000 0.000000]
Metadata
Metadata
Assignees
Labels
No labels