Quantcast
Channel: SharpGL
Viewing all articles
Browse latest Browse all 104

Commented Unassigned: Modern OpenGL sample does not work [1607]

$
0
0
I'm trying both SharpGL version(2.4, 2.3) of this sample on 2 different AMD GPU(Radeon HD 8650G, Open GL ver. 4.2; Radeon HD 4500 OpenGL ver. 3.3). They both are showing same incorrect result (see attached image or at http://advameric.com/downloads/screenshot.png). The ObjectLoadingSample does not work in retained mode on these GPUs either. It shows a blank window. In both cases OpenGL Version property of SharpGL.OpenGLControl is set to value corresponding to GPU OpengGL version.
Comments: ** Comment from web user: yuriberi **

I figured out that a fix for this problem is explicit location definition in the vertex shader.
I've changed Shader.vert adding the location definitions
layout(location = 0) in vec3 in_Position;
layout(location = 1) in vec3 in_Color;

This fixes the issue.


Viewing all articles
Browse latest Browse all 104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>