Microsoft angle. Opengl es not rendering

Hi all,

I was wondering if someone could help mw with this issue or has experienced the same.
I am developing a UWP app using Microsoft angle.
I am trying to render to a texture.
The shaders’ set up for rendering but when I try to draw nothing is drawn. I am including the gl3.h files.
I am rendering to textures and alpha blending is turned on but nothing is being drawn.
Is there an issue with the shaders’?

Thank you in advance.

Chris Davis

Include code so we can see what the problem might be. Also, worth reading our Forum Guidelines that will help you get an answer quickly.

https://www.opengl.org/discussion_boards/showthread.php/176139-Forum-Posting-Guidelines?p=1262303#post1262303

[QUOTE=Khronos_webmaster;1292133]Include code so we can see what the problem might be. Also, worth reading our Forum Guidelines that will help you get an answer quickly.

https://www.opengl.org/discussion_boards/showthread.php/176139-Forum-Posting-Guidelines?p=1262303#post1262303[/QUOTE]

Thanks for getting back to me.

Here is the code I using

===========================================

I am loading my shaders thus:


GLuint shader = glCreateShader(GL_FRAGMENT_SHADER);
glShaderSource(shader, nbr_src, src, NULL);
GLint isCompiled = 0;
glGetShaderiv(shader, GL_COMPILE_STATUS, &isCompiled);
...TESTING

GLint program = glCreateProgram();
glAttachShader(program, shader);
glLinkProgram(program);

Then I am rendering thus:


GLuint glprogram = program;
glUseProgram(glProgram);

GLuint vao;

GLint location;
location = glGetUniformLocation(glProgram, "colour");
if(location >= 0)
{
    glUniform3(location, 0.0f, 0.0f, 0.0f);
}

glEnable(GL_BLEND);

glBindVertexArray(vao);
glDrawArrays(GL_TRIANGLE_STRIP, 0, 3);

glUseProgram(0);

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.