File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
Plugin/PluginInteropUnityCUDA/src/Buffer Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 1
1
#pragma once
2
2
#include " vertex_buffer_OpenGLCoreES.h"
3
- #include " openGL_include.h"
4
- #include < cuda_gl_interop.h>
5
- // OpenGL Core profile (desktop) or OpenGL ES (mobile) implementation of RenderAPI.
6
- // Supports several flavors: Core, ES2, ES3
7
-
8
3
9
4
#if SUPPORT_OPENGL_UNIFIED
10
5
@@ -24,8 +19,9 @@ VertexBuffer_OpenGLCoreES::~VertexBuffer_OpenGLCoreES()
24
19
// / </summary>
25
20
void VertexBuffer_OpenGLCoreES::registerBufferInCUDA ()
26
21
{
27
- // cast the pointer on the buffer of unity to gluint
28
- GLuint glBuffer = (GLuint)(_bufferHandle);
22
+ // cast the pointer on the buffer of unity to gluint
23
+ // (first to size_t to avoid a warning C4311)
24
+ GLuint glBuffer = (GLuint)(size_t )(_bufferHandle);
29
25
// glBindBuffer(GL_PIXEL_UNPACK_BUFFER, glBuffer);
30
26
GL_CHECK ();
31
27
// register the buffer to cuda : it initialize the _pGraphicsResource
You can’t perform that action at this time.
0 commit comments