Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit def7965

Browse files
author
Sean V. Kelley
committed
Merge pull request #9 from MidhunKodiyath/cmrt_work
Support dynamic loading
2 parents 8c96170 + 5ab9280 commit def7965

39 files changed

+1221
-718
lines changed

src/cm_buffer.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ CM_RT_API INT
105105

106106
WaitForReferenceFree();
107107

108-
CmDevice *pCmDevice = NULL;
108+
CmDevice_RT *pCmDevice = NULL;
109109
m_SurfaceMgr->GetCmDevice(pCmDevice);
110110
PCM_CONTEXT pCmData = (PCM_CONTEXT) pCmDevice->GetAccelData();
111111

@@ -153,7 +153,7 @@ CM_RT_API INT
153153

154154
WaitForReferenceFree();
155155

156-
CmDevice *pCmDevice = NULL;
156+
CmDevice_RT *pCmDevice = NULL;
157157
m_SurfaceMgr->GetCmDevice(pCmDevice);
158158
PCM_CONTEXT pCmData = (PCM_CONTEXT) pCmDevice->GetAccelData();
159159

@@ -192,7 +192,7 @@ CM_RT_API INT CmBuffer_RT::InitSurface(const DWORD initValue, CmEvent * pEvent)
192192
FlushDeviceQueue(pEvent);
193193
}
194194

195-
CmDevice *pCmDevice = NULL;
195+
CmDevice_RT *pCmDevice = NULL;
196196
m_SurfaceMgr->GetCmDevice(pCmDevice);
197197
CM_ASSERT(pCmDevice);
198198
PCM_CONTEXT pCmData = (PCM_CONTEXT) pCmDevice->GetAccelData();

src/cm_def.h

-5
Original file line numberDiff line numberDiff line change
@@ -804,13 +804,8 @@ class SurfaceIndex {
804804
virtual unsigned int get_data(void) {
805805
return index;
806806
};
807-
808-
virtual ~ SurfaceIndex() {
809-
};
810-
811807
private:
812808
unsigned int index;
813-
814809
unsigned char extra_byte;
815810

816811
SurfaceIndex & operator=(const SurfaceIndex & other);

0 commit comments

Comments
 (0)