I would like to use OpenGL commands for drawing on RenderTexture, but just calling RenderTexture::SetActive(true) doesn't seem to work. What am I doing wrong RenderTexture's Draw command works fine.
sf::RenderTexture texture;
texture.Create(400,300);
texture.SetActive(true);
glBegin(GL_LINES);
glColor4ub(color.r,color.g,color.b,color.a);
glVertex2f(x1,y1);
glVertex2f(x2,y2);
glEnd();
Sorry about "bad English".