cancel
Showing results for 
Search instead for 
Did you mean: 

PC Graphics

masterlogick
Journeyman III

OpenGL. atio6axx.dll crash application

i have problem with atio6axx.dll. then i try to put mat4 in vertex shader program crash in "C  [atio6axx.dll+0x1bfd521]"

but i can correctly put vec3 in this shader.
how can i fix it?
sorry for my English

0 Likes
2 Replies
masterlogick
Journeyman III

vertex shader:


#version
330 core
layout (location = 0) in vec3 position;
layout (location = 1) in vec2 texPos;
out vec2 texCord;
uniform mat4 modelMatrix;
uniform mat4 viewMatrix;
uniform mat4 projectionMatrix;
void main(){
texCord = texPos;
gl_Position = projectionMatrix*viewMatrix*modelMatrix*vec4(position,1.0);
}

fragment shader:


#version
330 core
in vec2 texCord;
out vec4 color;
uniform sampler2D texture1;
void main()
{
color = texture(texture1,texCord);
}
0 Likes
masterlogick
Journeyman III

Sorry. It was my problem. If you write code Java with LWJGL and use this jglm library change AbstractMat.allocateBuffer() method body to 

return BufferUtils.createFloatBuffer( getNumRows() * getNumColumns() );

Likewise you can change code in AbstractVec

It helped me.
Thanks.

0 Likes