Fixed clDispatcher::Map to return void (instead of void *> to avoid errors on VS2010.

This commit is contained in:
U-octave\dyu 2012-06-26 02:04:11 -07:00
parent d654a587e2
commit f9a0531e6e
2 changed files with 3 additions and 3 deletions

View File

@ -116,7 +116,7 @@ OsdClVertexBuffer::UpdateData(const float *src, int numVertices) {
Unmap();
}
void *
void
OsdClVertexBuffer::Map() {
clEnqueueAcquireGLObjects(_clQueue, 1, &_clVbo, 0, 0, 0);

View File

@ -76,7 +76,7 @@ public:
virtual ~OsdClVertexBuffer();
virtual void UpdateData(const float *src, int numVertices);
void * Map();
void Map();
void Unmap();
cl_mem const * GetClBuffer() const { return &_clVbo; }
@ -157,7 +157,7 @@ protected:
int _numVertexElements, _numVaryingElements;
};
friend class Match;
friend struct Match;
protected:
cl_program _clProgram;