Skip to content

Commit 1d26bd8

Browse files
authored
Merge pull request #19 from nicholas477/dlmanager_custom_prim_types
Updated display list manager to support custom primitive types
2 parents be1ecb5 + 97aad34 commit 1d26bd8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/ps2gl/dlgmanager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class CDListGeomManager : public CGeomManager {
3434
CDListGeomManager(CGLContext& context);
3535
virtual ~CDListGeomManager() {}
3636

37-
void PrimChanged(unsigned char prim);
37+
void PrimChanged(GLenum prim);
3838

3939
// user state
4040

src/dlgmanager.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,10 @@ class CUpdateRendererContextCmd : public CDListCmd {
338338
};
339339

340340
class CUpdatePrimCmd : public CDListCmd {
341-
unsigned char Prim;
341+
GLenum Prim;
342342

343343
public:
344-
CUpdatePrimCmd(unsigned char prim)
344+
CUpdatePrimCmd(GLenum prim)
345345
: Prim(prim)
346346
{
347347
}
@@ -352,7 +352,7 @@ class CUpdatePrimCmd : public CDListCmd {
352352
}
353353
};
354354

355-
void CDListGeomManager::PrimChanged(unsigned char prim)
355+
void CDListGeomManager::PrimChanged(GLenum prim)
356356
{
357357
GLContext.PrimChanged();
358358
GLContext.GetDListManager().GetOpenDList() += CUpdatePrimCmd(prim);

0 commit comments

Comments
 (0)