ogl: remove glMapBuffer as it isn't in gles

This commit is contained in:
degasus
2013-08-19 19:20:10 +02:00
parent 1675f56f02
commit 23ce6b9227
4 changed files with 4 additions and 10 deletions

View File

@ -677,9 +677,10 @@ void Renderer::DrawDebugInfo()
glLineWidth(3.0f);
// 2*Coords + 3*Color
u32 length = stats.efb_regions.size() * sizeof(GLfloat) * (2+3)*2*6;
glBindBuffer(GL_ARRAY_BUFFER, s_ShowEFBCopyRegions_VBO);
glBufferData(GL_ARRAY_BUFFER, stats.efb_regions.size() * sizeof(GLfloat) * (2+3)*2*6, NULL, GL_STREAM_DRAW);
GLfloat *Vertices = (GLfloat*)glMapBuffer(GL_ARRAY_BUFFER, GL_WRITE_ONLY);
glBufferData(GL_ARRAY_BUFFER, length, NULL, GL_STREAM_DRAW);
GLfloat *Vertices = (GLfloat*)glMapBufferRange(GL_ARRAY_BUFFER, 0, length, GL_MAP_WRITE_BIT);
// Draw EFB copy regions rectangles
int a = 0;