Skip to content

Commit

Permalink
Merge pull request #19 from nicholas477/dlmanager_custom_prim_types
Browse files Browse the repository at this point in the history
Updated display list manager to support custom primitive types
  • Loading branch information
rickgaiser authored Nov 29, 2023
2 parents be1ecb5 + 97aad34 commit 1d26bd8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/ps2gl/dlgmanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class CDListGeomManager : public CGeomManager {
CDListGeomManager(CGLContext& context);
virtual ~CDListGeomManager() {}

void PrimChanged(unsigned char prim);
void PrimChanged(GLenum prim);

// user state

Expand Down
6 changes: 3 additions & 3 deletions src/dlgmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,10 +338,10 @@ class CUpdateRendererContextCmd : public CDListCmd {
};

class CUpdatePrimCmd : public CDListCmd {
unsigned char Prim;
GLenum Prim;

public:
CUpdatePrimCmd(unsigned char prim)
CUpdatePrimCmd(GLenum prim)
: Prim(prim)
{
}
Expand All @@ -352,7 +352,7 @@ class CUpdatePrimCmd : public CDListCmd {
}
};

void CDListGeomManager::PrimChanged(unsigned char prim)
void CDListGeomManager::PrimChanged(GLenum prim)
{
GLContext.PrimChanged();
GLContext.GetDListManager().GetOpenDList() += CUpdatePrimCmd(prim);
Expand Down

0 comments on commit 1d26bd8

Please sign in to comment.