Changeset 99775 in vbox for trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-ogl.cpp
- Timestamp:
- May 12, 2023 12:21:58 PM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 157370
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-ogl.cpp
r99688 r99775 3225 3225 * @param pvUser pointer to pState structure 3226 3226 */ 3227 DECLCALLBACK(int) vmsvga3dXEventThread(RTTHREAD hThreadSelf, void *pvUser)3227 static DECLCALLBACK(int) vmsvga3dXEventThread(RTTHREAD hThreadSelf, void *pvUser) 3228 3228 { 3229 3229 RT_NOREF(hThreadSelf); … … 5597 5597 } 5598 5598 5599 uint32_t vmsvga3dSVGA3dColor2RGBA(SVGA3dColor value) 5599 #if 0 /* unused */ 5600 static uint32_t vmsvga3dSVGA3dColor2RGBA(SVGA3dColor value) 5600 5601 { 5601 5602 /* flip the red and blue bytes */ … … 5604 5605 return (value & 0xff00ff00) | red | (blue << 16); 5605 5606 } 5607 #endif 5606 5608 5607 5609 static DECLCALLBACK(int) vmsvga3dBackSetTextureState(PVGASTATECC pThisCC, uint32_t cid, uint32_t cTextureStates, SVGA3dTextureState *pTextureState) … … 6426 6428 6427 6429 /* Convert VMWare vertex declaration to its OpenGL equivalent. */ 6428 int vmsvga3dVertexDecl2OGL(SVGA3dVertexArrayIdentity &identity, GLint &size, GLenum &type, GLboolean &normalized, uint32_t &cbAttrib)6430 static int vmsvga3dVertexDecl2OGL(SVGA3dVertexArrayIdentity &identity, GLint &size, GLenum &type, GLboolean &normalized, uint32_t &cbAttrib) 6429 6431 { 6430 6432 normalized = GL_FALSE; … … 6691 6693 /* Convert VMWare primitive type to its OpenGL equivalent. */ 6692 6694 /* Calculate the vertex count based on the primitive type and nr of primitives. */ 6693 int vmsvga3dPrimitiveType2OGL(SVGA3dPrimitiveType PrimitiveType, GLenum *pMode, uint32_t cPrimitiveCount, uint32_t *pcVertices)6695 static int vmsvga3dPrimitiveType2OGL(SVGA3dPrimitiveType PrimitiveType, GLenum *pMode, uint32_t cPrimitiveCount, uint32_t *pcVertices) 6694 6696 { 6695 6697 switch (PrimitiveType)
Note:
See TracChangeset
for help on using the changeset viewer.