- Timestamp:
- May 27, 2019 7:07:49 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_lighting.c
r78375 r78790 737 737 void STATE_APIENTRY crStateMaterialf (PCRStateTracker pState, GLenum face, GLenum pname, GLfloat param) 738 738 { 739 crStateMaterialfv(pState, face, pname, ¶m); 739 if (pname != GL_SHININESS) 740 { 741 crStateError(pState, __LINE__, __FILE__, GL_INVALID_ENUM, "crStateMaterialf: bad pname: 0x%x", pname); 742 return; 743 } 744 crStateMaterialfv(pState, face, pname, ¶m); 740 745 } 741 746 742 747 void STATE_APIENTRY crStateMateriali (PCRStateTracker pState, GLenum face, GLenum pname, GLint param) 743 748 { 744 GLfloat f_param = (GLfloat) param; 745 crStateMaterialfv(pState, face, pname, &f_param); 749 GLfloat f_param = (GLfloat) param; 750 751 if (pname != GL_SHININESS) 752 { 753 crStateError(pState, __LINE__, __FILE__, GL_INVALID_ENUM, "crStateMateriali: bad pname: 0x%x", pname); 754 return; 755 } 756 757 crStateMaterialfv(pState, face, pname, &f_param); 746 758 } 747 759
Note:
See TracChangeset
for help on using the changeset viewer.