Vertex color is not applied in plugin.

Hi,
I am implementing the plugin on openGL, but simple polygon is not applied vertex color in the Game view(not Scene view).

(example)

__declspec(dllexport) void Draw(){

glBegin(GL_QUADS);
glColor4f(1.0f, 0.0f, 0.0f, 1.0f);
glVertex3f(-1, 1, 0);
glColor4f(0.0f, 1.0f, 0.0f, 1.0f);
glVertex3f( 1, 1, 0);
glColor4f(0.0f, 0.0f, 1.0f, 1.0f);
glVertex3f( 1,-1, 0);
glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
glVertex3f(-1,-1, 0);
glEnd();

glPopMatrix();

}

Please help!

Thank you for your reply!

I want to use my opengl graphics library.
But it could not be rendered.
So I tried to implement simple polygon.

After that,I implemented my opengl ‘shader’ graphics library, and it could be rendered.
My problem was resolved.

Thank you.